:root {
  --bg: #0b0b0f;
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.70);
  --muted-2: rgba(255, 255, 255, 0.55);
  --accent: #3b82f6;
  --accent-2: #1d4ed8;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  --radius-lg: 24px;
  --radius-md: 16px;
  --container: 1120px;
  --header-h: 68px; /* базовая высота хедера */
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
}
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  padding-top: var(--header-h);
}

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

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

/* Background */
.bg { position: fixed; inset: 0; z-index: -1; }
.bg__grid {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(255,255,255,0.06) 1px, transparent 1px) 0 0 / 60px 60px,
    linear-gradient(to bottom, rgba(255,255,255,0.06) 1px, transparent 1px) 0 0 / 60px 60px;
  mask-image: radial-gradient(circle at 30% 10%, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 55%);
  opacity: 0.35;
}
.bg__glow {
  position: absolute;
  width: 900px; height: 900px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  background: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.85), rgba(59, 130, 246, 0));
}
.bg__glow--top { top: -420px; right: -420px; }
.bg__glow--bottom {
  bottom: -520px; left: -420px;
  background: radial-gradient(circle at 30% 30%, rgba(29, 78, 216, 0.65), rgba(29, 78, 216, 0));
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  z-index: 30;
  backdrop-filter: blur(14px);
  background: rgba(11, 11, 15, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; min-width: 220px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-weight: 800; letter-spacing: 0.2px; font-size: 18px; }
.brand__role { font-size: 12px; color: var(--muted-2); }

.nav__list {
  list-style: none;
  display: flex;
  gap: 18px;
  padding: 0;
  margin: 0;
}
.nav__link {
  font-size: 14px;
  color: var(--muted);
  padding: 10px 10px;
  border-radius: 12px;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.nav__link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.header__actions { display: flex; align-items: center; gap: 10px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.30);
}
.btn:hover { transform: translateY(-1px); background: rgba(255, 255, 255, 0.08); }
.btn--primary {
  border-color: rgba(59, 130, 246, 0.50);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(29, 78, 216, 0.75));
  box-shadow: 0 18px 55px rgba(59, 130, 246, 0.25);
  cursor: pointer;
}
.btn--primary:hover { background: linear-gradient(135deg, rgba(59, 130, 246, 1), rgba(29, 78, 216, 0.9)); }
.btn--ghost { background: rgba(255, 255, 255, 0.04); }

/* Hero */
.hero { padding: 54px 0 30px; }
.hero__grid { display: grid; grid-template-columns: 1fr; gap: 26px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: var(--muted);
  box-shadow: var(--shadow);
}
.pill__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.85), rgba(255,255,255,0)),
    linear-gradient(135deg, rgba(59,130,246,1), rgba(29,78,216,0.9));
  box-shadow: 0 0 0 6px rgba(59,130,246,0.14);
}
.hero__title {
  margin: 14px 0 10px;
  font-size: clamp(30px, 3.8vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.accent {
  background: linear-gradient(135deg, rgba(59, 130, 246, 1), rgba(29, 78, 216, 0.85));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  max-width: 74ch;
}
.hero__cta { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

.hero__stats {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.stat {
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  padding: 12px 12px;
}
.stat__top { display: flex; align-items: center; gap: 10px; }
.stat__icon {
  width: 32px; height: 32px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.25);
}
.stat__title { font-weight: 800; font-size: 14px; }
.stat__text { margin: 8px 0 0; color: var(--muted-2); font-size: 13px; line-height: 1.45; }

/* Sections */
.section { padding: 56px 0; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.section__title { margin: 0 0 10px; font-size: 26px; letter-spacing: -0.01em; }
.section__lead { margin: 0; color: var(--muted); max-width: 74ch; line-height: 1.6; }

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.section__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-2);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section__actions { display: flex; gap: 10px; }

/* Services */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.svc {
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  padding: 16px;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.svc:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}
.svc::before {
  content: "";
  position: absolute;
  inset: -2px;
  background:
    radial-gradient(circle at 80% 10%, rgba(59, 130, 246, 0.22), rgba(59, 130, 246, 0)),
    radial-gradient(circle at 15% 85%, rgba(29, 78, 216, 0.14), rgba(29, 78, 216, 0));
  pointer-events: none;
  opacity: 0.9;
}
.svc__top { display: flex; gap: 12px; align-items: flex-start; position: relative; }
.svc__icon {
  width: 38px; height: 38px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.25);
  flex: 0 0 auto;
}
.svc__meta { position: relative; }
.svc__title { margin: 0; font-size: 16px; font-weight: 850; letter-spacing: -0.01em; }
.svc__text { margin: 8px 0 0; color: var(--muted); line-height: 1.55; font-size: 13.5px; }
.svc__list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted-2);
  position: relative;
}
.svc__list li {
  padding-left: 16px;
  margin: 8px 0;
  line-height: 1.5;
  font-size: 13px;
  position: relative;
}
.svc__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.85);
  box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.10);
}
.svc__footer { margin-top: 14px; position: relative; }
.svc__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.20);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
}

/* Process */
.process__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}
.process__kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color: var(--muted-2);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.process__actions{ display:flex; gap:10px; }

.process__grid{
  display:grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 12px;
  margin-top: 16px;
}

.steps{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:12px;
}

.step{
  position:relative;
  overflow:hidden;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  padding: 14px 14px;
  display:flex;
  gap: 14px;
}
.step::before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(circle at 85% 15%, rgba(59,130,246,0.20), rgba(59,130,246,0)),
    radial-gradient(circle at 20% 85%, rgba(29,78,216,0.14), rgba(29,78,216,0));
  pointer-events:none;
  opacity: .9;
}
.step__num{
  position:relative;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  letter-spacing: 0.02em;
  background: rgba(59,130,246,0.14);
  border: 1px solid rgba(59,130,246,0.25);
  color: rgba(255,255,255,0.90);
}
.step__body{ position:relative; }
.step__title{
  font-weight: 900;
  letter-spacing: -0.01em;
}
.step__text{
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 13.5px;
  max-width: 80ch;
}
.step__meta{
  margin-top: 12px;
  display:flex;
  gap: 8px;
  flex-wrap:wrap;
}

.badge{
  display:inline-flex;
  align-items:center;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.20);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.82);
  font-size: 12px;
}
.badge--muted{
  color: rgba(255,255,255,0.72);
  border-color: rgba(255,255,255,0.08);
}

.processCard{
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(135deg, rgba(59,130,246,0.14), rgba(29,78,216,0.08));
  padding: 16px;
  height: fit-content;
  position: sticky;
  top: 92px;
  overflow:hidden;
}
.processCard::before{
  content:"";
  position:absolute;
  inset:-2px;
  background: radial-gradient(circle at 75% 20%, rgba(59,130,246,0.22), rgba(59,130,246,0));
  pointer-events:none;
}
.processCard__title{
  position:relative;
  font-weight: 950;
  letter-spacing: -0.01em;
}
.processCard__text{
  position:relative;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 13.5px;
}
.processCard__list{
  position:relative;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted-2);
}
.processCard__list li{
  padding-left: 16px;
  margin: 10px 0;
  line-height: 1.5;
  font-size: 13px;
  position:relative;
}
.processCard__list li::before{
  content:"";
  position:absolute;
  left: 2px;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(59,130,246,0.85);
  box-shadow: 0 0 0 5px rgba(59,130,246,0.10);
}
.processCard__cta{ position:relative; margin-top: 14px; }

/* Cases */
.cases__grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.case{
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  padding: 16px;
  position: relative;
  overflow: hidden;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.case:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.14);
}

.case::before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(circle at 80% 10%, rgba(59,130,246,0.18), rgba(59,130,246,0)),
    radial-gradient(circle at 15% 85%, rgba(29,78,216,0.12), rgba(29,78,216,0));
  pointer-events:none;
  opacity: .9;
}

.case__top{ position:relative; display:grid; gap: 10px; }
.case__badge{
  display:inline-flex;
  width: fit-content;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: rgba(255,255,255,0.82);
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.10);
}
.case__title{
  font-weight: 950;
  letter-spacing: -0.01em;
  font-size: 16px;
}

.case__text{
  position:relative;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 13.5px;
}

.case__tags{
  position:relative;
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
  margin-top: 12px;
}
.tag{
  display:inline-flex;
  align-items:center;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: rgba(255,255,255,0.78);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
}

.case__list{
  position:relative;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted-2);
}
.case__list li{
  padding-left: 16px;
  margin: 10px 0;
  line-height: 1.5;
  font-size: 13px;
  position:relative;
}
.case__list li::before{
  content:"";
  position:absolute;
  left: 2px;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(59,130,246,0.85);
  box-shadow: 0 0 0 5px rgba(59,130,246,0.10);
}

.case__footer{ position:relative; margin-top: 14px; }
.case__result{
  display:inline-flex;
  align-items:center;
  padding: 9px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.78);
  font-size: 12px;
}

.case--accent{
  border-color: rgba(59,130,246,0.30);
  background: rgba(59,130,246,0.08);
}
.case--accent:hover{ border-color: rgba(59,130,246,0.45); }

.cases__cta{ margin-top: 14px; }
.cases__ctaCard{
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(135deg, rgba(59,130,246,0.18), rgba(29,78,216,0.10));
  padding: 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
}
.cases__ctaTitle{ font-weight: 950; letter-spacing: -0.01em; }
.cases__ctaText{ margin-top: 6px; color: var(--muted); line-height: 1.55; font-size: 13.5px; }
.cases__ctaActions{ display:flex; gap: 10px; flex-wrap: wrap; }

/* Footer */
.footer { padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, 0.08); color: var(--muted-2); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.footer__link { color: var(--muted); }
.footer__link:hover { color: var(--text); }

/* Responsive */
@media (max-width: 980px) {
  .hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cases__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process__grid { grid-template-columns: 1fr; }
  .processCard { position: static; }
  .section__head { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 820px) {
  .nav { display: none; }
  .brand__role { display: none; }
}

@media (max-width: 560px) {
  .hero__stats { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: 1fr; }
  .cases__grid { grid-template-columns: 1fr; }
  .cases__ctaCard { flex-direction: column; align-items: stretch; }
  .step { flex-direction: column; }
  .step__num { width: 46px; }
}

@media (max-width: 480px) {
  .container { width: min(var(--container), calc(100% - 28px)); }
  .btn { width: 100%; padding: 12px 14px; }
  .header__actions .btn--ghost { display: none; }
}


/* =========================================================
   FIX: Services section layout (only inside #services)
   Не ломает другие блоки: все селекторы завязаны на #services
   ========================================================= */

#services .servicesLayout{
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 16px;
  margin-top: 18px;
  align-items: start;
}

/* Sticky иногда ломается из-за overflow у родителей */
#services,
#services .container,
#services .servicesLayout{
  overflow: visible;
}

/* LEFT: sticky navigation card */
#services .serviceNav{
  position: sticky;
  top: 92px;
  z-index: 5;

  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.045);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 60px rgba(0,0,0,0.45);

  padding: 16px;
  height: fit-content;
  overflow: hidden;
}

#services .serviceNav::before{
  content:"";
  position:absolute;
  inset:-2px;
  border-radius: inherit;
  background:
    radial-gradient(circle at 30% 15%, rgba(59,130,246,0.24), rgba(59,130,246,0)),
    radial-gradient(circle at 80% 90%, rgba(29,78,216,0.16), rgba(29,78,216,0));
  pointer-events:none;
  opacity: .95;
}

#services .serviceNav > *{ position: relative; }

#services .serviceNav__title{
  font-weight: 950;
  letter-spacing: -0.01em;
  font-size: 16px;
}

#services .serviceNav__text{
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 13.5px;
}

#services .serviceNav__links{
  margin-top: 14px;
  display: grid;
  gap: 8px;

  /* если ссылок станет много — прокрутка внутри sticky */
  max-height: calc(100vh - 320px);
  overflow: auto;
  padding-right: 6px;
}

#services .serviceNav__links::-webkit-scrollbar{ width: 8px; }
#services .serviceNav__links::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,0.10);
  border-radius: 999px;
}

#services .serviceNav__link{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;

  padding: 10px 12px;
  border-radius: 14px;

  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.86);

  font-size: 13px;
  font-weight: 800;

  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

#services .serviceNav__link::after{
  content:"→";
  opacity: .7;
  font-weight: 900;
}

#services .serviceNav__link:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.06);
  border-color: rgba(59,130,246,0.28);
}

#services .serviceNav__meta{
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

#services .serviceNav__metaRow{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
}

#services .serviceNav__chip{
  display:inline-flex;
  align-items:center;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.82);
  font-size: 12px;
}

#services .serviceNav__chip--muted{
  color: rgba(255,255,255,0.70);
  border-color: rgba(255,255,255,0.08);
}

#services .serviceNav__cta{
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

/* RIGHT: grid of service cards */
#services .servicesGrid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

/* Сделаем карточки справа явно "залитыми" и объемными */
#services .servicesGrid .svc{
  position: relative;
  overflow: hidden;

  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 18px 55px rgba(0,0,0,0.40), inset 0 1px 0 rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);

  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

#services .servicesGrid .svc::before{
  content:"";
  position:absolute;
  inset:-2px;
  border-radius: inherit;
  background:
    radial-gradient(circle at 85% 15%, rgba(59,130,246,0.22), rgba(59,130,246,0)),
    radial-gradient(circle at 18% 85%, rgba(29,78,216,0.14), rgba(29,78,216,0));
  pointer-events:none;
  opacity: .95;
}

#services .servicesGrid .svc > *{ position: relative; }

#services .servicesGrid .svc:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,0.065);
  border-color: rgba(59,130,246,0.28);
}

/* Мини-карточки спокойнее */
#services .servicesGrid .svc--mini{
  background: rgba(255,255,255,0.045);
}

#services .servicesGrid .svc--mini:hover{
  background: rgba(255,255,255,0.055);
}

/* Responsive */
@media (max-width: 980px){
  #services .servicesLayout{
    grid-template-columns: 1fr;
  }

  #services .serviceNav{
    position: static;
  }

  #services .serviceNav__links{
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
}

@media (max-width: 560px){
  #services .servicesGrid{
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Contacts
   ========================================================= */

#contacts .contactsLayout{
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 16px;
  margin-top: 18px;
}

/* Form */
#contacts .contactForm{
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 16px;
  display: grid;
  gap: 12px;
  box-shadow: 0 18px 55px rgba(0,0,0,0.40);
}

#contacts .contactForm__field{
  display: grid;
  gap: 6px;
}

#contacts .contactForm label{
  font-size: 12px;
  color: var(--muted-2);
}

#contacts .contactForm input,
#contacts .contactForm textarea{
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
}

#contacts .contactForm input:focus,
#contacts .contactForm textarea:focus{
  outline: none;
  border-color: rgba(59,130,246,0.45);
}

#contacts .contactForm__hint{
  font-size: 12px;
  color: var(--muted-2);
  text-align: center;
}

/* Info card */
#contacts .contactCard{
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(
    135deg,
    rgba(59,130,246,0.16),
    rgba(29,78,216,0.10)
  );
  padding: 16px;
  height: fit-content;
}

#contacts .contactCard__title{
  font-weight: 950;
  margin-bottom: 12px;
}

#contacts .contactCard__item{
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
}

#contacts .contactCard__label{
  font-size: 12px;
  color: var(--muted-2);
}

#contacts .contactCard__value{
    font-weight: 600;
    font-size: 13px;
}

#contacts .contactCard__note{
  margin-top: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
}

/* Responsive */
@media (max-width: 820px){
  #contacts .contactsLayout{
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Contacts form validation (scoped to #contacts)
   ========================================================= */

#contacts .fieldError{
  display: none;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(255, 120, 120, 0.95);
}

#contacts .fieldError.is-visible{
  display: block;
}

#contacts .is-invalid{
  border-color: rgba(255, 120, 120, 0.55) !important;
  box-shadow: 0 0 0 3px rgba(255, 120, 120, 0.12);
}

#contacts .contactForm__status{
  display: none;
  border-radius: 14px;
  padding: 10px 12px;
  margin-bottom: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.88);
  font-size: 13px;
}

#contacts .contactForm__status.is-visible{
  display: block;
}

#contacts .contactForm__status.is-success{
  border-color: rgba(90, 255, 160, 0.25);
  background: rgba(90, 255, 160, 0.06);
  text-align: center;
}

#contacts .contactForm__status.is-error{
  border-color: rgba(255, 120, 120, 0.25);
  background: rgba(255, 120, 120, 0.06);
  text-align: center;
}

#contacts .contactForm__submit.is-loading{
  opacity: 0.9;
  pointer-events: none;
  position: relative;
}

#contacts .contactForm__submit.is-loading::after{
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: rgba(255,255,255,0.95);
  display: inline-block;
  margin-left: 10px;
  vertical-align: -3px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin{
  to { transform: rotate(360deg); }
}