/* styles_common.css — shared by every page: tokens, base, header & menu,
   typography, buttons, trust, process, partners, CTA band, contact,
   footer and the consultation popup. Page files only add their own sections. */

/* ============================================
   TOKENS
   ============================================ */
:root {
  --color-black: #000;
  --color-white: #fff;
  --color-white-dim: #e5e5e5;
  --color-black-glass: rgba(0, 0, 0, 0.29);
  --color-neon-orange: #ff4000;
  --color-active: var(--color-neon-orange); /* one brand accent everywhere */
  --color-error: #ff6b6b; /* form validation only */
  --header-h: 64px;

  --line: rgba(255, 255, 255, 0.08); /* dividers & card borders */
  --line-strong: rgba(255, 255, 255, 0.18); /* hover borders */
  --surface: rgba(255, 255, 255, 0.04); /* card background */
  --surface-hover: rgba(255, 255, 255, 0.07);

  --section-pad-y: 8rem;
  --section-pad-x: 6rem;
}

/* ============================================
   FONT — Montserrat served from this site (not Google), weights 100–900.
   latin covers English, latin-ext adds Polish letters (fonts/OFL.txt)
   ============================================ */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/montserrat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================
   RESET
   ============================================ */
*,
*::before,
*::after {
  padding: 0;
  box-sizing: border-box;
}

/* ============================================
   UTILITIES
   ============================================ */
.hide {
  display: none !important;
}

/* ============================================
   BASE
   ============================================ */
/* Decorations that stick out sideways (the Siri orb on Home) must not let a
   phone swipe the page left and right. clip, unlike hidden, keeps sticky
   and vertical overlaps working. */
html {
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-weight: 100;
  font-style: normal;
  background-color: var(--color-black);
  color: var(--color-white);
  overflow-x: hidden;
  user-select: none;
  -webkit-user-select: none;
}

/* A quick double tap on a button or link doesn't zoom the page on iPhone;
   pinch zoom still works */
a,
button,
[role="button"] {
  touch-action: manipulation;
}

/* Images can't be dragged out or saved with a long press (iOS menu).
   The right-click menu is blocked in script_common.js. */
img {
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
}

/* ============================================
   HEADER
   ============================================ */
header {
  position: fixed;
  inset: 0 0 auto 0; /* top:0 left:0 right:0 */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem;
  background: transparent;
  /* the glass bar fades in once the page scrolls (script_common.js) */
  transition:
    background 0.4s ease,
    backdrop-filter 0.4s ease,
    -webkit-backdrop-filter 0.4s ease;
  z-index: 999;
  color: var(--color-white);
}

header.is-scrolled,
header.is-open {
  background: var(--color-black-glass);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.logo a {
  display: flex;
  align-items: center;
  padding-left: 0.4rem;
  text-decoration: none;
}

.logo img {
  display: block;
  height: 15px;
  width: auto;
}

.logo a:hover {
  opacity: 0.9;
}

header nav {
  margin-left: auto; /* push links + CTA to the right */
}

header nav a:not(.btn) {
  position: relative;
  margin: 0 15px;
  text-decoration: none;
  color: var(--color-white);
  font-weight: 300;
  text-transform: uppercase;
  font-size: 0.8rem;
  transition: color 0.3s ease;
}

/* thin brand-orange underline on hover */
header nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: var(--color-active);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

header nav a:not(.btn):hover::after,
header nav a.active::after {
  transform: scaleX(1);
}

header nav a.active {
  color: var(--color-active);
}

.header__cta {
  margin-left: 1rem;
}

/* Header button is an outline, quieter than the filled CTAs on the page
   (header-scoped so it beats .btn--small) */
header .header__cta {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--color-white);
}

header .header__cta:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-white);
  color: var(--color-white);
}

/* CTA inside the nav is only for the mobile menu
   (header-scoped so it beats the generic .btn display) */
header .header__nav-cta {
  display: none;
}

/* --- Burger (mobile only) --- */
.header__burger {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  margin-left: 0.75rem;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.header__burger span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.5px;
  background: var(--color-white);
  transition:
    transform 0.3s ease,
    top 0.3s ease;
}

.header__burger span:nth-child(1) {
  top: 15px;
}

.header__burger span:nth-child(2) {
  top: 23px;
}

/* burger → cross */
header.is-open .header__burger span:nth-child(1) {
  top: 19px;
  transform: rotate(45deg);
}

header.is-open .header__burger span:nth-child(2) {
  top: 19px;
  transform: rotate(-45deg);
}

/* ============================================
   FLOATING ARROW — back to the list of systems
   ============================================ */
.to-offer {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: var(--color-white);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
  color: var(--color-black);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease;
}

.to-offer.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-offer:hover {
  background: var(--color-active);
  color: var(--color-white);
  box-shadow: 0 6px 24px rgba(255, 64, 0, 0.45);
}

.to-offer svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================================
   LAYOUT
   ============================================ */
.sections-wrapper {
  display: flex;
  flex-direction: column;
  overflow-x: clip; /* decorations may hang off the edges */
}

/* Shared section shell — every content section uses it */
.section {
  position: relative;
  background: var(--color-black);
  padding: var(--section-pad-y) var(--section-pad-x);
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

/* ============================================
   TYPOGRAPHY — shared across all pages
   section-label → section-title → section-sub
   card-num → card-title → card-text
   ============================================ */

.section-header {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 880px;
  z-index: 2;
}

/* Small eyebrow above a title */
.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.35;
}

/* Section heading */
.section-title {
  font-size: clamp(2.2rem, 3.6vw, 3.2rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance; /* even line lengths, no lonely last word */
}

/* Lead paragraph under a section heading */
.section-sub {
  max-width: 640px;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  opacity: 0.6;
  margin: 0;
  text-wrap: pretty;
}

/* Small number above a card title */
.card-num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  opacity: 0.3;
  user-select: none;
  transition: opacity 0.3s ease;
}

/* Heading inside a card / list item */
.card-title {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin: 0;
}

/* Body text inside a card / list item */
.card-text {
  max-width: 440px;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.65;
  opacity: 0.6;
  margin: 0;
}

/* Brand word — "solutions" from BGsolutions.
   Warm gradient (like lamp light) ending in the brand orange.
   Reuse it wherever the word appears in a headline. */
.brand-word {
  background: linear-gradient(
    100deg,
    #ffe3c4 0%,
    #ff9a5a 45%,
    var(--color-neon-orange) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  /* keeps descenders/italics from being clipped by background-clip */
  padding-right: 0.05em;
}

/* Row heading in numbered lists (Home offer, Building custom development) */
.row-title {
  font-size: clamp(0.85rem, 1.1vw, 1.05rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Bullet points with a small brand-orange marker */
.points li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
}

/* Marker: a short thin line */
.points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 8px;
  height: 1px;
  background: rgba(255, 255, 255, 0.45);
}

.points strong {
  display: block;
  margin-bottom: 0.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-white);
}

/* Protocol / keyword tags (pills) */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.25rem 0 0;
  list-style: none;
}

.tags > * {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  opacity: 0.55;
  transition:
    opacity 0.3s,
    border-color 0.3s;
}

/* ============================================
   BUTTONS — shared across all pages
   btn--primary: main action · btn--ghost: secondary
   btn--small: compact (header) · btn--down: arrow points down (scrolls the page)
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  border: 1px solid transparent;
  border-radius: 100px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
}

.btn::after {
  content: "→";
  transition: transform 0.3s ease;
}

.btn:hover::after {
  transform: translateX(4px);
}

/* Button that scrolls further down the page */
.btn--down::after {
  content: "↓";
}

.btn--down:hover::after {
  transform: translateY(3px);
}

.btn--primary {
  background: var(--color-white);
  color: var(--color-black);
}

.btn--primary:hover {
  background: var(--color-neon-orange);
  color: var(--color-white);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--color-white);
  backdrop-filter: blur(6px);
}

.btn--ghost:hover {
  border-color: var(--color-white);
  background: rgba(255, 255, 255, 0.1);
}

.btn--small {
  padding: 0.6rem 1.2rem;
  font-size: 0.7rem;
  background: var(--color-white);
  color: var(--color-black);
}

.btn--small::after {
  content: none;
}

.btn--small:hover {
  background: var(--color-neon-orange);
  color: var(--color-white);
}

.btn:disabled {
  opacity: 0.5;
  cursor: wait;
}

/* ============================================
   TRUST — numbers & certification
   ============================================ */
.trust {
  padding-top: 6rem;
  gap: 5rem;
}

.trust__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust__stat {
  padding: 3.5rem 2rem;
  text-align: center;
}

.trust__stat + .trust__stat {
  border-left: 1px solid var(--line);
}

.trust__value {
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(
    to bottom,
    var(--color-white),
    rgba(255, 255, 255, 0.45)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.trust__caption {
  margin-top: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.45;
}

.trust__partners {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.trust__logos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem 5rem;
  list-style: none;
  margin: 0;
}

.trust__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

/* Dimmed until hover. Opacity lives on the children, not on .trust__logo,
   so it doesn't fight the GSAP entrance animation */
.trust__logo-img,
.trust__logo-role {
  transition: opacity 0.3s ease;
}

.trust__logo-img {
  display: block;
  height: 64px;
  width: auto;
  opacity: 0.6;
}

.trust__logo:hover .trust__logo-img {
  opacity: 1;
}

.trust__logo-role {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.6;
}

/* ============================================
   STATEMENT — one large centred phrase between sections, Apple-style:
   tight tracking, second line in a softer grey. The two lines rise out
   of a blur one after another (script_common.js).
   ============================================ */
.statement {
  background: var(--color-black);
  padding: 10rem 6rem; /* same space above and below */
}

.statement__title {
  max-width: 900px;
  margin: 0 auto;
  font-size: clamp(2.6rem, 5.6vw, 5rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-align: center;
}

/* Each line is a block, so the script can bring them in one after another */
.statement__line,
.statement__muted {
  display: block;
}

.statement__muted {
  color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 600px) {
  .statement {
    padding: 6rem 1.5rem;
  }
}

/* ============================================
   PROCESS
   ============================================ */
.process__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 4rem 6rem;
}

/* Hover effect shared by Process steps and "Who we work with" cards:
   orange top line, soft orange glow, number turns orange */
.process__step,
.for-who__item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  isolation: isolate; /* keeps the glow behind the text, inside the step */
}

/* Top line — grows in brand orange on hover */
.process__step::before,
.for-who__item::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-neon-orange) 60%, transparent);
  box-shadow: 0 0 12px rgba(255, 64, 0, 0.6);
  transition: width 0.5s ease;
}

/* Hover only with a mouse; on touch screens the item at the scroll line
   gets .is-active instead (scroll highlight in script_common.js) */
@media (hover: hover) {
  .process__step:hover::before,
  .for-who__item:hover::before {
    width: 100%;
  }
}

.process__step.is-active::before,
.for-who__item.is-active::before {
  width: 100%;
}

/* Soft orange glow behind the step — same light as the CTA band */
.process__step::after,
.for-who__item::after {
  content: "";
  position: absolute;
  inset: -6rem -4rem -4rem -6rem;
  z-index: -1;
  /* closest-side: the glow fades out before it reaches any edge,
     so there is no visible cut-off */
  background: radial-gradient(
    closest-side at 35% 40%,
    rgba(255, 64, 0, 0.16),
    transparent
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

@media (hover: hover) {
  .process__step:hover::after,
  .for-who__item:hover::after {
    opacity: 1;
  }
}

.process__step.is-active::after,
.for-who__item.is-active::after {
  opacity: 1;
}

/* Large step number — muted grey, brand orange on hover */
.process__step-num {
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1;
  user-select: none;
  color: rgba(255, 255, 255, 0.22);
  transition:
    color 0.4s ease,
    text-shadow 0.4s ease;
}

@media (hover: hover) {
  .process__step:hover .process__step-num {
    color: var(--color-neon-orange);
  }
}

.process__step.is-active .process__step-num {
  color: var(--color-neon-orange);
}

/* ============================================
   FOR WHO
   ============================================ */
.for-who__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem 3rem;
}

/* Line icon in the top-right corner, level with number + title —
   same style as the offer icons */
.card-icon {
  position: absolute;
  top: 0.25rem;
  right: 0;
  width: 36px;
  height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.6;
  transition:
    color 0.4s ease,
    opacity 0.4s ease;
}

/* keep long titles clear of the corner icon */
.for-who__item .card-title {
  padding-right: 3rem;
}

@media (hover: hover) {
  .for-who__item:hover .card-icon {
    color: var(--color-neon-orange);
    opacity: 1;
  }
}

.for-who__item.is-active .card-icon {
  color: var(--color-neon-orange);
  opacity: 1;
}

/* Base layout and hover line/glow are shared with .process__step (see PROCESS) */
.for-who__item .card-num {
  transition:
    color 0.4s ease,
    opacity 0.4s ease;
}

@media (hover: hover) {
  .for-who__item:hover .card-num {
    color: var(--color-neon-orange);
    opacity: 1;
  }
}

.for-who__item.is-active .card-num {
  color: var(--color-neon-orange);
  opacity: 1;
}

/* ============================================
   CTA BAND — call to action between sections
   ============================================ */
.cta-band {
  padding-top: 0;
  padding-bottom: 0;
}

.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding: 3rem 3.5rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(
      ellipse 60% 120% at 100% 50%,
      rgba(255, 64, 0, 0.12),
      transparent 70%
    ),
    var(--surface);
}

.cta-band__text {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cta-band__title {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
  text-wrap: balance;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Warm finish: a large, soft brand-orange glow rising from the bottom */
.contact__background {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(
      ellipse 90% 85% at 20% 110%,
      rgba(255, 64, 0, 0.32),
      rgba(255, 64, 0, 0.1) 45%,
      transparent 75%
    ),
    var(--color-black);
}

/* Big display title */
.contact__title {
  position: relative;
  z-index: 1;
  font-size: 14vw;
  font-weight: 900;
  margin: 0;
  padding: 5% 0 0 5%;
  pointer-events: none;
  user-select: none;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.66),
    var(--color-black)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: start; /* both columns start on the same line */
  gap: 6rem;
  padding: 1rem var(--section-pad-x) 6rem;
  font-size: 1rem;
}

.contact__content p {
  margin: 0;
}

/* Left column: short invitation + button that opens the popup */
.contact__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
}

.contact__cta-text {
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  font-weight: 600;
  line-height: 1.15;
}

/* Right column: label + value rows */
.contact__list {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  border-top: 1px solid var(--line-strong);
}

.contact__list li {
  display: grid;
  grid-template-columns: 7rem 1fr;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.contact__list-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.45;
}

.contact__list a,
.contact__list li > span:not(.contact__list-label) {
  color: var(--color-white);
  font-size: 1rem;
  font-weight: 400;
  text-decoration: none;
}

.contact__list a {
  transition: color 0.3s ease;
}

.contact__list a:hover {
  color: var(--color-active);
}

/* Slim footer line at the very bottom */
.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  padding: 1.5rem var(--section-pad-x);
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.45);
}

.site-footer a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-footer a:hover {
  color: var(--color-white);
}

/* --- Legal text page (privacy.html) --- */
.legal {
  max-width: 46rem;
  margin: 0 auto;
  padding: calc(var(--header-h) + 4rem) 1.5rem 5rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--color-white-dim);
}

.legal__title {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  color: var(--color-white);
}

.legal__date {
  margin: 0 0 3rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

.legal h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-white);
}

.legal p,
.legal ul {
  margin: 0;
}

.legal ul {
  padding-left: 1.25rem;
}

.legal a {
  color: var(--color-white);
}

.legal a:hover {
  color: var(--color-active);
}

/* --- Contact form --- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding: 2.5rem;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--line);
  border-radius: 20px;
  backdrop-filter: blur(12px);
}

.contact-form__intro {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-form__group {
  border: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-form__label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.5;
}

/* A <legend> ignores the fieldset's flex gap — space it by hand */
legend.contact-form__label {
  padding: 0;
  margin-bottom: 0.75rem;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Text inputs */
.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--color-white);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 400;
  user-select: text;
  -webkit-user-select: text;
  transition:
    border-color 0.3s ease,
    background 0.3s ease;
}

.field textarea {
  resize: vertical;
  min-height: 7rem;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.5);
  background: var(--surface-hover);
}

.field input.is-invalid {
  border-color: var(--color-error);
}

/* Radio chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip span {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 400;
  cursor: pointer;
  transition:
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}

.chip:hover span {
  border-color: rgba(255, 255, 255, 0.5);
}

.chip input:checked + span {
  background: var(--color-white);
  border-color: var(--color-white);
  color: var(--color-black);
  font-weight: 500;
}

.chip input:focus-visible + span {
  outline: 2px solid var(--color-neon-orange);
  outline-offset: 2px;
}

/* Consent checkbox */
.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.8rem;
  font-weight: 300;
  line-height: 1.5;
  opacity: 0.7;
  cursor: pointer;
}

.consent input {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  margin: 0.15rem 0 0;
  accent-color: var(--color-neon-orange);
}

.consent a {
  color: inherit;
}

.consent.is-invalid {
  color: var(--color-error);
  opacity: 1;
}

.contact-form__footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.contact-form__status {
  font-size: 0.85rem;
  opacity: 0.8;
}

.contact-form__status.is-error {
  color: var(--color-error);
}

/* ============================================
   FAQ
   ============================================ */
.faq {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: start;
}

.faq__list {
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 1.6rem 0;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  list-style: none;
  transition: opacity 0.3s ease;
}

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

.faq__item summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.5rem;
  font-weight: 200;
  line-height: 1;
  opacity: 0.5;
  transition: transform 0.3s ease;
}

.faq__item[open] summary::after {
  transform: rotate(45deg);
}

.faq__item summary:hover {
  opacity: 0.75;
}

.faq__item .card-text {
  max-width: none;
  padding: 0 3rem 1.75rem 0;
}


/* ============================================
   RESPONSIVE — shared parts
   ============================================ */
@media (max-width: 1024px) {
  .for-who__grid {
    grid-template-columns: 1fr;
  }

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

  .contact__content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  :root {
    --section-pad-y: 5rem;
    --section-pad-x: 2rem;
  }

  /* Trust */
  .trust {
    padding-top: 10rem;
    gap: 3.5rem;
  }

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

  .trust__stat {
    padding: 2.25rem 1rem;
  }

  .trust__stat + .trust__stat {
    border-left: none;
    border-top: 1px solid var(--line);
  }

  .for-who__grid {
    grid-template-columns: 1fr;
  }

  /* FAQ */
  .faq__item .card-text {
    padding-right: 0;
  }

  /* Contact */
  .contact__title {
    font-size: 15vw;
  }

  .contact__list li {
    grid-template-columns: 5.5rem 1fr;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .contact-form__row {
    grid-template-columns: 1fr;
  }

  /* CTA band */
  .cta-band__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.5rem;
  }

  /* Header */
  .header__cta {
    display: none;
  }
}

/* ============================================
   MOBILE HEADER — burger + full-screen menu
   ============================================ */
@media (max-width: 900px) {
  header {
    height: var(--header-h);
    padding: 0 1.25rem;
  }

  .header__cta {
    display: none;
  }

  .header__burger {
    display: block;
    margin-left: auto;
  }

  /* Nav turns into a full-screen panel under the header */
  .header__nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    height: calc(100dvh - var(--header-h));
    margin: 0;
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    /* solid: a nested backdrop-filter inside the blurred header
       doesn't apply, so a translucent panel shows the page through */
    background: var(--color-black);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
      opacity 0.3s ease,
      visibility 0.3s ease,
      transform 0.3s ease;
  }

  header.is-open .header__nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .header__nav a:not(.btn) {
    margin: 0;
    padding: 1rem 0;
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--line);
  }

  .header__nav a:not(.btn)::after {
    display: none;
  }

  /* Full-width, larger CTA — sized to match the menu items */
  header .header__nav-cta {
    display: flex;
    align-self: stretch;
    margin-top: 2.5rem;
    padding: 1.2rem 1.5rem;
    font-size: 0.95rem;
    letter-spacing: 0.1em;
  }

  /* page behind the open menu doesn't scroll */
  body.menu-open {
    overflow: hidden;
  }

  .to-offer {
    right: 1.25rem;
    bottom: 1.25rem;
    width: 46px;
    height: 46px;
  }
}

/* ============================================
   CONSULTATION POPUP (native <dialog>)
   ============================================ */
.modal {
  width: min(560px, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: #0b0b0d;
  color: var(--color-white);
  overflow: auto;
  /* entrance */
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.modal[open].is-shown {
  opacity: 1;
  transform: none;
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
}

/* The form inside reuses the contact form styles,
   only without its own glass card */
.modal__form {
  background: none;
  border: none;
  backdrop-filter: none;
  padding: 2.5rem;
}

.modal__title {
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition:
    background 0.3s ease,
    border-color 0.3s ease;
}

.modal__close:hover {
  background: var(--color-active);
  border-color: var(--color-active);
}

.modal__close span {
  position: absolute;
  top: 19px;
  left: 11px;
  right: 11px;
  height: 1.5px;
  background: var(--color-white);
}

.modal__close span:nth-child(1) {
  transform: rotate(45deg);
}

.modal__close span:nth-child(2) {
  transform: rotate(-45deg);
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .modal__form {
    padding: 2rem 1.5rem;
  }
}

