/* =========================================================
   PIETRZAK IT — MAIN STYLESHEET
   Site: pietrzak-it.pl
   Concept: Software Field Notes
   Palette: dark ink + soft steel blue
========================================================= */


/* =========================================================
   01. CSS VARIABLES / COLOR SYSTEM
   Main place to edit colors later
========================================================= */

:root {
  --bg: #0d1117;
  --bg-soft: #111827;
  --bg-deep: #070b10;

  --card: #151b24;
  --card-soft: #1b2430;
  --card-warm: #161d27;

  --text: #f3f7fb;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;

  --line: rgba(243, 247, 251, 0.11);
  --line-strong: rgba(243, 247, 251, 0.20);

  --accent: #8ab4f8;
  --accent-dark: #5f8fdc;
  --accent-soft: rgba(138, 180, 248, 0.13);
  --accent-line: rgba(138, 180, 248, 0.34);

  --danger: #fb7185;
  --success: #86efac;

  --shadow: 0 26px 90px rgba(0, 0, 0, 0.42);
  --shadow-soft: 0 18px 60px rgba(0, 0, 0, 0.28);

  --radius-lg: 34px;
  --radius-md: 24px;
  --radius-sm: 16px;

  --container: 1120px;
}


/* =========================================================
   02. RESET / BASE
========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 12% 10%, rgba(138, 180, 248, 0.10), transparent 30%),
    radial-gradient(circle at 86% 20%, rgba(95, 143, 220, 0.08), transparent 28%),
    linear-gradient(180deg, var(--bg), var(--bg-deep));
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

body::before {
  display: none;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img,
svg {
  max-width: 100%;
}

p,
h1,
h2,
h3 {
  margin-top: 0;
}

p {
  color: var(--muted);
}

::selection {
  background: var(--accent);
  color: #07111f;
}


/* =========================================================
   03. GLOBAL LAYOUT HELPERS
========================================================= */

.site-shell {
  overflow: hidden;
}

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

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

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-heading.compact {
  margin-bottom: 54px;
}

.section-heading h2,
.contact-info h2 {
  margin-bottom: 0;
  color: var(--text);
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  letter-spacing: -0.02em;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--accent), #b9d2ff);
  color: #07111f;
  box-shadow: 0 18px 44px rgba(138, 180, 248, 0.22);
}

.button-primary:hover {
  background: linear-gradient(135deg, #b9d2ff, var(--accent));
  box-shadow: 0 24px 58px rgba(138, 180, 248, 0.30);
}


/* =========================================================
   04. HEADER / NAVIGATION
========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid var(--line);
  background: rgba(13, 17, 23, 0.84);
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.header-inner {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-image {
  display: inline-flex;
  align-items: center;
  max-width: 260px;
}

.brand-image img {
  display: block;
  width: auto;
  height: 54px;
  max-width: 100%;
  object-fit: contain;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.desktop-nav a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.desktop-nav a:hover {
  color: var(--accent);
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

.mobile-menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 6px auto;
  background: var(--text);
}

.mobile-nav {
  display: none;
}


/* =========================================================
   05. HERO / OPENING NOTE
========================================================= */

.hero {
  min-height: calc(100vh - 78px);
  display: flex;
  align-items: center;
  padding: 86px 0 92px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.82fr) minmax(0, 1.03fr);
  align-items: center;
  gap: 70px;
}

.hero-content {
  position: relative;
}

.hero-content::before {
  content: "";
  display: block;
  width: 72px;
  height: 2px;
  margin-bottom: 28px;
  background: var(--accent);
  opacity: 0.8;
}

.hero h1 {
  max-width: 760px;
  margin-bottom: 26px;
  color: var(--text);
  font-size: clamp(48px, 7.4vw, 86px);
  line-height: 0.94;
  letter-spacing: -0.078em;
}

.hero h1 span {
  display: block;
  color: var(--accent);
}

.hero-lead {
  max-width: 650px;
  margin-bottom: 34px;
  color: var(--muted-strong);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}


/* =========================================================
   06. HERO FIELD NOTE CARD
   Decorative card in Hero
========================================================= */

.field-note-card {
  position: relative;
  min-height: 390px;
  padding: 42px 40px 38px;
  border: 1px solid var(--accent-line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 82% 50%, rgba(138, 180, 248, 0.08), transparent 28%),
    linear-gradient(145deg, rgba(27, 36, 48, 0.96), rgba(13, 17, 23, 0.98));
  box-shadow: var(--shadow);
  transform: rotate(-1.2deg);
  isolation: isolate;
}

.field-note-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background-image: radial-gradient(rgba(138, 180, 248, 0.22) 1px, transparent 1px);
  background-size: 16px 16px;
  background-position: 78% 46%;
  mask-image: linear-gradient(90deg, transparent 45%, black 100%);
  opacity: 0.36;
  z-index: -1;
}

.field-note-card::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 22px;
  border: 1px solid rgba(243, 247, 251, 0.05);
  pointer-events: none;
}

.paper-clip {
  position: absolute;
  top: -18px;
  right: 54px;
  width: 24px;
  height: 74px;
  border: 3px solid rgba(243, 247, 251, 0.42);
  border-radius: 999px;
  transform: rotate(9deg);
  opacity: 0.92;
}

.paper-clip::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 5px;
  width: 9px;
  height: 48px;
  border: 2px solid rgba(243, 247, 251, 0.24);
  border-radius: 999px;
}

.field-note-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 38px;
}

.field-note-header span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.field-note-header i {
  display: block;
  flex: 1;
  height: 1px;
  background: var(--accent-line);
}

.field-note-list {
  display: grid;
  gap: 26px;
}

.field-note-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 20px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(243, 247, 251, 0.08);
}

.field-note-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.field-note-item p {
  margin: 0;
  color: var(--text);
  font-family: "Space Grotesk", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 26px;
  line-height: 1.04;
  letter-spacing: -0.055em;
  font-weight: 600;
}

.field-note-item p strong {
  display: block;
  color: var(--accent);
  font-weight: 700;
}

.field-icon {
  position: relative;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--accent-line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.13), transparent 30%),
    linear-gradient(145deg, rgba(138, 180, 248, 0.18), rgba(138, 180, 248, 0.045));
  color: var(--accent);
}

.field-icon::before,
.field-icon::after,
.field-icon span::before,
.field-icon span::after {
  content: "";
  position: absolute;
  display: block;
}

/* Software Development icon */
.icon-code::before {
  left: 13px;
  top: 14px;
  width: 30px;
  height: 21px;
  border: 2px solid var(--accent);
  border-radius: 7px;
  opacity: 0.95;
}

.icon-code::after {
  left: 18px;
  top: 22px;
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 99px;
  box-shadow:
    0 7px 0 rgba(138, 180, 248, 0.58),
    9px 7px 0 rgba(138, 180, 248, 0.32);
}

.icon-code span::before {
  right: 11px;
  bottom: 10px;
  width: 13px;
  height: 13px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* IT Consulting icon */
.icon-consulting::before {
  left: 13px;
  top: 13px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  box-shadow:
    23px 4px 0 -2px var(--accent),
    12px 25px 0 -2px var(--accent);
}

.icon-consulting::after {
  left: 21px;
  top: 24px;
  width: 24px;
  height: 20px;
  border-top: 2px solid rgba(138, 180, 248, 0.78);
  border-left: 2px solid rgba(138, 180, 248, 0.78);
  transform: skewY(-18deg);
  opacity: 0.9;
}

.icon-consulting span::before {
  right: 12px;
  bottom: 12px;
  width: 14px;
  height: 2px;
  background: var(--accent);
  border-radius: 99px;
  transform: rotate(-35deg);
}

/* Technology Support icon */
.icon-support::before {
  left: 12px;
  top: 13px;
  width: 33px;
  height: 10px;
  border: 2px solid var(--accent);
  border-radius: 6px;
}

.icon-support::after {
  left: 12px;
  top: 31px;
  width: 33px;
  height: 10px;
  border: 2px solid rgba(138, 180, 248, 0.72);
  border-radius: 6px;
}

.icon-support span::before {
  right: 13px;
  top: 18px;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 18px 0 rgba(138, 180, 248, 0.7);
}

.icon-support span::after {
  left: 17px;
  top: 18px;
  width: 11px;
  height: 2px;
  background: rgba(138, 180, 248, 0.72);
  border-radius: 99px;
  box-shadow: 0 18px 0 rgba(138, 180, 248, 0.42);
}


/* =========================================================
   07. WORKING AREAS
   Uses real image blocks: area-software.webp, etc.
========================================================= */

.working-areas {
  padding: 76px 0 84px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent),
    var(--bg);
}

.working-heading {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 36px;
  align-items: end;
  max-width: none;
  margin-bottom: 32px;
}

.working-heading p {
  max-width: 560px;
  margin: 0 0 8px auto;
  color: var(--muted-strong);
}

.area-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.area-card {
  position: relative;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent),
    var(--card);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
}

.area-card::before {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -42px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--accent-soft);
  filter: blur(8px);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.area-card:hover {
  transform: translateY(-7px);
  border-color: var(--accent-line);
  background:
    linear-gradient(180deg, rgba(138, 180, 248, 0.055), transparent),
    var(--card);
}

.area-card:hover::before {
  opacity: 1;
}

.area-image {
  position: relative;
  height: 190px;
  margin-bottom: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 24% 18%, rgba(138, 180, 248, 0.12), transparent 32%),
    linear-gradient(145deg, rgba(27, 36, 48, 0.92), rgba(13, 17, 23, 0.94));
}

.area-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0.92;
  transform: scale(1.01);
  transition:
    transform 0.35s ease,
    opacity 0.35s ease;
}

.area-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 45%, rgba(13, 17, 23, 0.42)),
    radial-gradient(circle at 80% 20%, rgba(138, 180, 248, 0.10), transparent 30%);
  pointer-events: none;
}

.area-card:hover .area-image img {
  transform: scale(1.06);
  opacity: 1;
}

.area-card h3 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 25px;
  letter-spacing: -0.04em;
}

.area-card p {
  max-width: none;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.58;
}

.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: auto 0 0;
  padding: 22px 0 0;
  list-style: none;
}

.area-list li {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.01em;
}

.area-card:hover .area-list li {
  border-color: rgba(138, 180, 248, 0.28);
}


/* =========================================================
   08. METHOD / CLEAN SPLIT WORKFLOW
========================================================= */

.method-section {
  padding: 82px 0 90px;
  background:
    radial-gradient(circle at 82% 24%, rgba(138, 180, 248, 0.08), transparent 28%),
    var(--bg-soft);
}

.method-split {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 54px;
  align-items: center;
}

.method-copy h2 {
  max-width: 520px;
  margin-bottom: 20px;
  color: var(--text);
  font-size: clamp(38px, 5vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.method-copy > p {
  max-width: 470px;
  margin-bottom: 28px;
  color: var(--muted-strong);
  font-size: 17px;
  line-height: 1.7;
}

.method-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-weight: 850;
  letter-spacing: -0.02em;
  transition:
    gap 0.2s ease,
    color 0.2s ease;
}

.method-link span {
  transition: transform 0.2s ease;
}

.method-link:hover {
  gap: 14px;
  color: #b9d2ff;
}

.method-link:hover span {
  transform: translateX(2px);
}


/* =========================================================
   08.1 WORKFLOW VISUAL CARD
========================================================= */

.workflow-visual {
  position: relative;
  min-height: 350px;
  padding: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 34px;
  background:
    radial-gradient(circle at 24% 18%, rgba(138, 180, 248, 0.13), transparent 28%),
    linear-gradient(145deg, rgba(27, 36, 48, 0.94), rgba(7, 11, 16, 0.98));
  box-shadow: var(--shadow);
  overflow: hidden;
  isolation: isolate;
}

.workflow-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(138, 180, 248, 0.14) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.18;
  mask-image: linear-gradient(90deg, transparent 8%, black 60%, transparent 100%);
  pointer-events: none;
  z-index: -1;
}

.workflow-visual::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -90px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(138, 180, 248, 0.12);
  filter: blur(18px);
  pointer-events: none;
}

.workflow-topbar {
  position: absolute;
  top: 28px;
  left: 30px;
  display: flex;
  gap: 7px;
}

.workflow-topbar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(243, 247, 251, 0.22);
}


/* =========================================================
   08.2 ANIMATED CONNECTION LINE
========================================================= */

.workflow-track {
  position: absolute;
  left: 76px;
  right: 76px;
  top: 172px;
  height: 2px;
  background: rgba(138, 180, 248, 0.18);
  overflow: hidden;
}

.workflow-light {
  position: absolute;
  top: 0;
  left: -30%;
  width: 34%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: workflowLight 3.8s linear infinite;
}


/* =========================================================
   08.3 WORKFLOW NODES / STEPS
========================================================= */

.workflow-nodes {
  position: absolute;
  left: 42px;
  right: 42px;
  top: 106px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  z-index: 2;
}

.workflow-node {
  position: relative;
  min-height: 168px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(13, 17, 23, 0.76);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  animation: nodeFloat 5.4s ease-in-out infinite;
}

.workflow-node:nth-child(2) {
  animation-delay: 0.45s;
}

.workflow-node:nth-child(3) {
  animation-delay: 0.9s;
}

.node-index {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border: 1px solid var(--accent-line);
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.node-dot {
  position: absolute;
  right: 18px;
  top: 22px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 22px rgba(138, 180, 248, 0.72);
  animation: nodePulse 2.4s ease-in-out infinite;
}

.workflow-node small,
.workflow-node strong {
  display: block;
}

.workflow-node small {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.workflow-node strong {
  margin-bottom: 12px;
  color: var(--text);
  font-size: 25px;
  line-height: 1;
  letter-spacing: -0.055em;
}

.workflow-node p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}


/* =========================================================
   08.5 WORKFLOW ANIMATIONS
========================================================= */

@keyframes workflowLight {
  0% {
    left: -35%;
  }

  100% {
    left: 105%;
  }
}

@keyframes workflowLightVertical {
  0% {
    top: -35%;
  }

  100% {
    top: 105%;
  }
}

@keyframes nodePulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.72;
  }

  50% {
    transform: scale(1.24);
    opacity: 1;
  }
}

@keyframes nodeFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .workflow-light,
  .workflow-node,
  .node-dot {
    animation: none;
  }
}


/* =========================================================
   09. CONTACT SECTION / CONTACT CONSOLE
========================================================= */

.contact-section {
  padding: 96px 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(138, 180, 248, 0.08), transparent 26%),
    var(--bg);
}

.contact-console {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  padding: 34px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(27, 36, 48, 0.94), rgba(13, 17, 23, 0.98));
  box-shadow: var(--shadow);
}

.contact-info {
  padding: 10px 0;
}

.contact-info h2 {
  max-width: 520px;
  margin-bottom: 18px;
  color: var(--text);
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1;
  letter-spacing: -0.065em;
}

.contact-info > p {
  max-width: 460px;
  margin-bottom: 28px;
  color: var(--muted-strong);
  font-size: 16px;
  line-height: 1.7;
}

.legal-note {
  display: grid;
  gap: 7px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}


/* =========================================================
   09.1 CONTACT FORM PANEL
========================================================= */

.contact-form {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 88% 12%, rgba(138, 180, 248, 0.10), transparent 24%),
    rgba(7, 11, 16, 0.58);
  overflow: hidden;
}

.contact-form::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(138, 180, 248, 0.12) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.16;
  mask-image: linear-gradient(90deg, transparent 18%, black 100%);
  pointer-events: none;
}

.form-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.contact-form label {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(7, 11, 16, 0.68);
  color: var(--text);
  outline: none;
  padding: 15px 16px;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(148, 163, 184, 0.58);
}

.contact-form textarea {
  min-height: 154px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent-line);
  background: rgba(7, 11, 16, 0.86);
  box-shadow: 0 0 0 4px rgba(138, 180, 248, 0.08);
}

.hidden-field {
  display: none;
}

.form-button {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: 4px;
}

.contact-form button:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
}

/* =========================================================
   09.2 CONTACT FORM POPUP
   Success/error overlay over the contact form
========================================================= */

.form-popup {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7, 11, 16, 0.72);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    visibility 0.22s ease;
  visibility: hidden;
}

.form-popup.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.form-popup-box {
  position: relative;
  width: min(100%, 360px);
  padding: 30px 26px 26px;
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  background:
    radial-gradient(circle at 80% 12%, rgba(138, 180, 248, 0.12), transparent 28%),
    linear-gradient(145deg, rgba(21, 27, 36, 0.98), rgba(7, 11, 16, 0.98));
  box-shadow: var(--shadow);
  text-align: center;
  transform: translateY(10px) scale(0.98);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease;
}

.form-popup.is-open .form-popup-box {
  transform: translateY(0) scale(1);
}

.form-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(7, 11, 16, 0.58);
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
}

.form-popup-close:hover {
  color: var(--text);
  border-color: var(--accent-line);
}

.form-popup-icon {
  position: relative;
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  border-radius: 18px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
}

.form-popup-icon::before,
.form-popup-icon::after {
  content: "";
  position: absolute;
  display: block;
}

.form-popup.is-success .form-popup-icon {
  border-color: rgba(134, 239, 172, 0.42);
  background: rgba(134, 239, 172, 0.10);
}

.form-popup.is-success .form-popup-icon::before {
  left: 18px;
  top: 28px;
  width: 11px;
  height: 2px;
  background: var(--success);
  border-radius: 99px;
  transform: rotate(45deg);
}

.form-popup.is-success .form-popup-icon::after {
  left: 25px;
  top: 25px;
  width: 20px;
  height: 2px;
  background: var(--success);
  border-radius: 99px;
  transform: rotate(-45deg);
}

.form-popup.is-error .form-popup-icon {
  border-color: rgba(251, 113, 133, 0.42);
  background: rgba(251, 113, 133, 0.10);
}

.form-popup.is-error .form-popup-icon::before,
.form-popup.is-error .form-popup-icon::after {
  left: 17px;
  top: 28px;
  width: 24px;
  height: 2px;
  background: var(--danger);
  border-radius: 99px;
}

.form-popup.is-error .form-popup-icon::before {
  transform: rotate(45deg);
}

.form-popup.is-error .form-popup-icon::after {
  transform: rotate(-45deg);
}

.form-popup-box strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.form-popup-box p {
  max-width: 280px;
  margin: 0 auto;
  color: var(--muted-strong);
  font-size: 15px;
  line-height: 1.55;
}

.form-popup.is-success .form-popup-box {
  border-color: rgba(134, 239, 172, 0.32);
}

.form-popup.is-error .form-popup-box {
  border-color: rgba(251, 113, 133, 0.32);
}


/* =========================================================
   10. FOOTER
========================================================= */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
}

.footer-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-links a {
  color: var(--muted);
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent);
}


/* =========================================================
   11. PRIVACY POLICY PAGE SUPPORT
========================================================= */

.policy-section {
  padding: 84px 0 96px;
}

.policy-content {
  max-width: 860px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.policy-content h1 {
  margin-bottom: 18px;
  color: var(--text);
  font-size: clamp(42px, 6vw, 70px);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.policy-content h2 {
  margin: 34px 0 12px;
  color: var(--text);
  font-size: 25px;
  letter-spacing: -0.04em;
}

.policy-content p,
.policy-content li {
  color: var(--muted);
}

.policy-content a {
  color: var(--accent);
  font-weight: 800;
}


/* =========================================================
   12. RESPONSIVE / TABLET
========================================================= */

@media (max-width: 980px) {
  .hero {
    min-height: auto;
    padding: 72px 0 84px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .field-note-card {
    max-width: 560px;
    transform: rotate(0deg);
  }

  .working-heading {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .working-heading p {
    margin-left: 0;
  }

  .area-grid,
  .contact-console {
    grid-template-columns: 1fr;
  }

  .area-image {
    height: 220px;
  }

  .method-split {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .method-copy h2 {
    max-width: 680px;
  }

  .method-copy > p {
    max-width: 620px;
  }

  .workflow-visual {
    min-height: 360px;
  }

  .workflow-nodes {
    left: 50px;
    right: 50px;
    top: 112px;
    gap: 22px;
  }

  .workflow-track {
    left: 96px;
    right: 96px;
    top: 174px;
  }
}


/* =========================================================
   13. RESPONSIVE / MOBILE
========================================================= */

@media (max-width: 720px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .header-inner {
    height: 72px;
  }

  .brand-image {
    max-width: 210px;
  }

  .brand-image img {
    height: 44px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu-button {
    display: block;
  }

  .mobile-nav {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 80px;
    display: none;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(21, 27, 36, 0.98);
    box-shadow: var(--shadow-soft);
  }

  .mobile-nav.is-open {
    display: grid;
    gap: 14px;
  }

  .mobile-nav a {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .hero {
    padding: 58px 0 68px;
  }

  .hero-content::before {
    margin-bottom: 22px;
  }

  .hero h1 {
    font-size: clamp(44px, 16vw, 64px);
  }

  .hero-lead {
    font-size: 17px;
  }

  .field-note-card {
    min-height: auto;
    padding: 32px 24px 24px;
    border-radius: 24px;
  }

  .paper-clip {
    right: 30px;
  }

  .field-note-item {
    grid-template-columns: 54px 1fr;
    gap: 16px;
  }

  .field-icon {
    width: 50px;
    height: 50px;
  }

  .field-note-item p {
    font-size: 22px;
  }

  .working-areas,
  .method-section,
  .contact-section,
  .policy-section {
    padding: 66px 0;
  }

  .section-heading h2,
  .contact-info h2 {
    font-size: 34px;
  }

  .area-card {
    padding: 18px;
  }

  .area-image {
    height: 190px;
    margin-bottom: 22px;
  }

  .method-split {
    gap: 34px;
  }

  .method-copy h2 {
    font-size: 38px;
  }

  .workflow-visual {
    min-height: 640px;
    padding: 24px;
  }

  .workflow-track {
    left: 50%;
    right: auto;
    top: 112px;
    bottom: 92px;
    width: 2px;
    height: auto;
    transform: translateX(-50%);
  }

  .workflow-light {
    top: -30%;
    left: 0;
    width: 100%;
    height: 34%;
    background: linear-gradient(180deg, transparent, var(--accent), transparent);
    animation-name: workflowLightVertical;
  }

  .workflow-nodes {
    left: 24px;
    right: 24px;
    top: 76px;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .workflow-node {
    min-height: 142px;
  }

  .contact-console {
    padding: 20px;
    border-radius: 26px;
  }

  .contact-form {
    padding: 20px;
  }

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

  .footer-inner {
    padding: 22px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}


/* =========================================================
   14. RESPONSIVE / SMALL MOBILE
========================================================= */

@media (max-width: 420px) {
  .brand-image {
    max-width: 180px;
  }

  .brand-image img {
    height: 38px;
  }

  .hero h1 {
    letter-spacing: -0.065em;
  }

  .field-note-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .field-note-header i {
    width: 100%;
    flex: none;
  }

  .contact-console {
    padding: 16px;
  }

  .workflow-visual {
    min-height: 670px;
  }
}