/* =========================================================
   LEGIT DEV — глобальні стилі (усі сторінки)
   Стилі, специфічні для блогу, винесені у /blog/style-blog.css
   ========================================================= */

/* ========== CSS VARIABLES ========== */
:root {
  /* Основні кольори */
  --primary: #39a3d5;
  --primary-hover: #5bbce4;
  --primary-dark: #2a8ab8;
  --secondary: #3fbe5f;
  --secondary-hover: #5ccf78;
  --secondary-dark: #2e9a47;

  /* Фони */
  --dark: #0A0A0A;
  --dark-card: #141414;
  --dark-alt: #050505;

  /* Текст */
  --text-white: #FFFFFF;
  --text-gray: #B0B0B0;
  --text: #F3F5F8;
  --muted: #8A8F9B;

  /* Межі */
  --border: #2A2A2A;
  --line: rgba(255, 255, 255, 0.08);

  /* Акцентні градієнти (hero, блог) */
  --blue-1: #57C6EE;
  --blue-2: #2E86C8;
  --green-1: #8CE86B;
  --green-2: #3EB84A;

  /* Тіні */
  --shadow-primary: 0 0 25px rgba(57, 163, 213, 0.4);
  --shadow-secondary: 0 0 25px rgba(63, 190, 95, 0.4);
  --shadow-card: 0 10px 30px rgba(57, 163, 213, 0.08);

  /* Помилки */
  --error: #FF4444;
  --error-bg: rgba(255, 68, 68, 0.1);

  /* Успіх */
  --success: #4CAF50;
  --success-bg: rgba(46, 125, 50, 0.15);
  --success-border: #2E7D32;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: clip;
}

body {
  font-family: 'Montserrat Alternates', sans-serif;
  background: var(--dark);
  color: var(--text-white);
  line-height: 1.6;
}

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

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

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 100px 0;
}

section[id] {
  scroll-margin-top: 90px;
}

h2 {
  font-size: 38px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  color: var(--text-white);
}

.section-subtitle {
  text-align: center;
  color: var(--text-gray);
  font-size: 16px;
  margin-bottom: 50px;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-block;
  font-family: 'Montserrat Alternates', sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: 16px 36px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  text-align: center;
}

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

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  box-shadow: var(--shadow-primary);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--text-white);
}

/* ========== HEADER ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--dark);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.header__logo img {
  height: 42px;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-gray);
  transition: color 0.3s ease;
  position: relative;
}

.nav a:hover,
.nav a.active {
  color: var(--primary);
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.burger span {
  width: 26px;
  height: 2px;
  background: var(--text-white);
  transition: all 0.3s ease;
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
  background: var(--primary);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  background: var(--primary);
}

/* ========== HERO ========== */
.lg-hero {
  position: relative;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  overflow: hidden;
  padding: clamp(72px, 10vw, 128px) clamp(20px, 5vw, 64px) clamp(64px, 8vw, 96px);
  isolation: isolate;
}

/* blueprint grid backdrop */
.lg-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 30% 20%, black 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 30% 20%, black 0%, transparent 75%);
  z-index: 0;
  opacity: 0.6;
}

.lg-hero::after {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(46, 134, 200, 0.2) 0%, rgba(62, 184, 74, 0.1) 45%, transparent 70%);
  filter: blur(10px);
  z-index: 0;
}

.lg-wrap {
  position: relative;
  z-index: 2;
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

/* eyebrow */
.lg-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--green-1);
  background: rgba(62, 184, 74, 0.08);
  border: 1px solid rgba(62, 184, 74, 0.25);
  padding: 6px 14px 6px 10px;
  border-radius: 100px;
  margin-bottom: 26px;
  opacity: 0;
  animation: lg-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

.lg-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-1);
  box-shadow: 0 0 8px var(--green-1);
  animation: lg-pulse 1.8s ease-in-out infinite;
}

.lg-h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
  opacity: 0;
  animation: lg-rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.22s forwards;
}

.lg-h1 .grad {
  background: linear-gradient(95deg, var(--blue-1), var(--blue-2) 45%, var(--green-2) 75%, var(--green-1));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lg-sub {
  font-size: clamp(15.5px, 1.6vw, 18px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 46ch;
  margin: 0 0 36px;
  opacity: 0;
  animation: lg-rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.34s forwards;
}

.lg-sub strong {
  color: var(--text);
  font-weight: 600;
}

.lg-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 44px;
  opacity: 0;
  animation: lg-rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.46s forwards;
}

.lg-btn {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 10px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.lg-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.lg-btn:focus-visible,
.lg-btn:focus {
  outline: 2px solid var(--blue-1);
  outline-offset: 2px;
}

.lg-btn-primary {
  color: #06110A;
  background: linear-gradient(95deg, var(--blue-1), var(--green-1));
  box-shadow: 0 8px 24px -8px rgba(62, 184, 74, 0.45);
}

.lg-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px rgba(62, 184, 74, 0.6);
}

.lg-btn-ghost {
  color: var(--text);
  background: transparent;
  border-color: var(--line);
}

.lg-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.18);
}

.lg-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 22px 30px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  color: var(--muted);
  opacity: 0;
  animation: lg-rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.58s forwards;
}

.lg-trust span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lg-trust svg {
  width: 14px;
  height: 14px;
  color: var(--green-1);
  flex-shrink: 0;
}

/* --- signature: assembling browser mockup --- */
.lg-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 380px;
}

.lg-browser {
  position: relative;
  width: min(100%, 460px);
  border-radius: 14px;
  background: linear-gradient(180deg, #12131C, #0C0D13);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.02);
  opacity: 0;
  animation: lg-rise-scale 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
  overflow: hidden;
}

.lg-browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.lg-browser-bar .lg-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.lg-browser-url {
  flex: 1;
  margin-left: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  padding: 5px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lg-browser-url .lock {
  width: 10px;
  height: 10px;
  color: var(--green-1);
  flex-shrink: 0;
}

.lg-browser-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lg-block {
  border-radius: 8px;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.06);
  opacity: 0;
  transform: translateY(10px);
  animation: lg-block-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.lg-block.b1 {
  height: 34px;
  width: 60%;
  animation-delay: 1.05s;
}

.lg-block.b2 {
  height: 88px;
  animation-delay: 1.2s;
}

.lg-block.b3 {
  height: 14px;
  width: 85%;
  animation-delay: 1.35s;
}

.lg-block.b4 {
  height: 14px;
  width: 70%;
  animation-delay: 1.45s;
}

.lg-block.b-row {
  display: flex;
  gap: 12px;
  animation-delay: 1.6s;
}

.lg-block.b-row .cell {
  flex: 1;
  height: 64px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(46, 134, 200, 0.18), rgba(62, 184, 74, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.lg-block.b-cta {
  height: 38px;
  width: 44%;
  margin-top: 2px;
  border-radius: 8px;
  background: linear-gradient(95deg, var(--blue-2), var(--green-2));
  border: none;
  animation-delay: 1.8s;
}

.lg-float-badge {
  position: absolute;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: var(--text);
  background: rgba(14, 15, 22, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 12px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.5);
  opacity: 0;
  animation: lg-badge-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  backdrop-filter: blur(6px);
}

.lg-float-badge .sw {
  width: 7px;
  height: 7px;
  border-radius: 2px;
}

.lg-badge-1 {
  bottom: 8px;
  right: 120px;
  animation-delay: 2s;
}

.lg-badge-1 .sw {
  background: var(--blue-1);
}

.lg-badge-2 {
  bottom: 8px;
  right: 12px;
  animation-delay: 2.2s;
}

.lg-badge-2 .sw {
  background: var(--green-1);
}

/* ========== ANIMATIONS ========== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lg-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lg-rise-scale {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes lg-block-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lg-badge-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.94);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes lg-pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.35;
  }
}

.fade-up {
  animation: fadeUp 0.6s ease both;
}

.fade-up-delay-1 {
  animation-delay: 0.2s;
}

.fade-up-delay-2 {
  animation-delay: 0.4s;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== SERVICES ========== */
.services {
  background: var(--dark);
}

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

.service-card {
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
  text-align: center;
  transition: all 0.3s ease;
}

.service-card:hover {
  border-color: var(--primary);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card__icon svg {
  width: 44px;
  height: 44px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 1.8;
}

.service-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.7;
}

/* ========== PORTFOLIO ========== */
.portfolio {
  background: var(--dark-alt);
}

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

.portfolio-card {
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.portfolio-card:hover {
  border-color: var(--primary);
}

.portfolio-card__img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #1a1a1a;
}

.portfolio-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.portfolio-card:hover .portfolio-card__img img {
  transform: scale(1.04);
}

.portfolio-card__body {
  padding: 20px 22px;
}

.portfolio-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.portfolio-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.portfolio-card__tags span {
  font-size: 12px;
  font-weight: 500;
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 4px 10px;
  border-radius: 20px;
}

/* ========== PRICING ========== */
.pricing {
  background: var(--dark);
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 28px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.pricing-card--featured {
  border-color: var(--secondary);
  border-width: 2px;
  background: #1A1A1A;
  transform: scale(1.03);
}

.pricing-card--featured:hover {
  transform: scale(1.03) translateY(-6px);
}

.pricing-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--secondary);
  color: var(--text-white);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 20px;
  border-radius: 20px;
}

.pricing-card h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 14px;
}

.pricing-card__price {
  font-size: 40px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 22px;
}

.pricing-card__price span {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-gray);
}

.pricing-card ul {
  margin-bottom: 28px;
}

.pricing-card li {
  font-size: 14px;
  color: var(--text-gray);
  padding: 8px 0 8px 24px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  position: relative;
}

.pricing-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: 700;
}

/* ========== PROCESS ========== */
.process {
  background: var(--dark-alt);
}

.process__steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.process__steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 40px;
  right: 40px;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.process__line-fill {
  position: absolute;
  top: 28px;
  left: 40px;
  height: 2px;
  background: var(--primary);
  z-index: 1;
  transition: width 1.2s ease;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 2;
  flex: 1;
}

.process-step__num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--dark-card);
  border: 2px solid var(--border);
  color: var(--text-gray);
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  transition: all 0.5s ease;
}

.process-step.done .process-step__num {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--text-white);
}

.process-step h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.process-step p {
  font-size: 13px;
  color: var(--text-gray);
  max-width: 140px;
  margin: 0 auto;
}

/* ========== FAQ ========== */
.faq {
  background: var(--dark);
}

.faq__list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--text-white);
  font-family: 'Montserrat Alternates', sans-serif;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
}

.faq-item__arrow {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: transform 0.35s ease;
  color: var(--primary);
}

.faq-item.active .faq-item__arrow {
  transform: rotate(45deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-item__answer {
  max-height: 200px;
  padding: 0 24px 20px;
}

.faq-item__answer p {
  font-size: 15px;
  color: var(--text-gray);
  line-height: 1.7;
}

/* ========== CONTACT ========== */
.contact {
  background: var(--dark);
}

.contact__wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.contact__info h3 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 14px;
}

.contact__info p {
  color: var(--text-gray);
  margin-bottom: 24px;
  line-height: 1.7;
}

.contact__socials {
  display: flex;
  gap: 14px;
}

.contact__socials a {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.contact__socials a:hover {
  border-color: var(--primary);
  background: rgba(57, 163, 213, 0.1);
}

.contact__socials svg {
  width: 20px;
  height: 20px;
  fill: var(--primary);
}

/* ========== FORMS ========== */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  color: #CCCCCC;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 14px 16px;
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-white);
  font-family: 'Montserrat Alternates', sans-serif;
  font-size: 15px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(57, 163, 213, 0.1);
}

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

.form-select {
  appearance: none;
  cursor: pointer;
}

.form-select option {
  background: var(--dark-card);
  color: var(--text-white);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  margin-bottom: 20px;
}

.form-checkbox-input {
  display: none;
}

.form-checkbox-box {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 4px;
  flex-shrink: 0;
  transition: all 0.3s ease;
  position: relative;
}

.form-checkbox-input:checked + .form-checkbox-box {
  background: var(--primary);
  border-color: var(--primary);
}

.form-checkbox-input:checked + .form-checkbox-box::after {
  content: '✓';
  position: absolute;
  top: -1px;
  left: 3px;
  color: var(--text-white);
  font-size: 14px;
  font-weight: 700;
}

.form-checkbox-text {
  font-size: 13px;
  color: var(--text-gray);
  line-height: 1.5;
}

.form-checkbox-text a {
  color: var(--primary);
  text-decoration: underline;
}

.form-error {
  display: block;
  color: var(--error);
  font-size: 13px;
  margin-top: 5px;
}

.form-input--error,
.form-textarea--error {
  border-color: var(--error) !important;
}

.form-success,
.form-global-error {
  padding: 14px 18px;
  border-radius: 8px;
  margin-top: 16px;
  font-size: 15px;
  text-align: center;
}

.form-success {
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  color: var(--success);
}

.form-global-error {
  background: var(--error-bg);
  border: 1px solid var(--error);
  color: var(--error);
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--dark-alt);
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__logo img {
  height: 30px;
}

.footer__copy {
  font-size: 14px;
  color: var(--text-gray);
}

.footer__link {
  font-size: 14px;
  color: var(--text-gray);
  transition: color 0.3s;
}

.footer__link:hover {
  color: var(--primary);
}

.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: var(--dark);
  color: var(--primary);
  font-size: 20px;
  cursor: pointer;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--primary);
  color: var(--text-white);
}

/* ========== MOBILE ========== */
@media (max-width: 1023px) {

  .services__grid,
  .portfolio__grid,
  .pricing__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-card--featured {
    transform: none;
  }

  .pricing-card--featured:hover {
    transform: translateY(-6px);
  }

  .contact__wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .process__steps {
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
  }

  .process__steps::before,
  .process__line-fill {
    display: none;
  }

  .process-step {
    flex: 0 0 160px;
  }
}

@media (max-width: 920px) {
  .lg-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  h2 {
    font-size: 28px;
  }

  .services__grid,
  .portfolio__grid,
  .pricing__grid {
    grid-template-columns: 1fr;
  }

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

  .burger {
    display: flex;
  }

  .lg-badge-1 {
    bottom: 20px;
    right: 110px;
  }

  .lg-badge-2 {
    bottom: 20px;
    right: 9px;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    flex-direction: column;
    background: var(--dark);
    padding: 100px 32px 40px;
    gap: 24px;
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform 0.4s;
    z-index: 100;
  }

  .nav.active {
    transform: translateX(0);
  }

  .nav a {
    font-size: 18px;
  }

  .footer__inner {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lg-hero * {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
