@import url("fonts.css");

/* ------------------------------------------------------------------
   Poulgrenz — IT-Dienstleistungen
   Палитра снята с фирменного знака: фиолетовый фон, градиент
   зелёный → лайм → янтарь → оранжевый.
   ------------------------------------------------------------------ */

:root {
  --bg:       #1E0C3C;
  --bg-2:     #2A1150;
  --surface:  #33195F;
  --surface-2:#3E2072;
  --text:     #EFE9FA;
  --muted:    #A793CC;
  --line:     rgba(167, 147, 204, .22);
  --line-soft:rgba(167, 147, 204, .11);

  --g1: #54B72B;
  --g2: #B7CE1B;
  --g3: #E6B109;
  --g4: #F95E3F;
  --grad: linear-gradient(100deg, var(--g1), var(--g2) 38%, var(--g3) 66%, var(--g4));

  --display: "Space Grotesk", system-ui, sans-serif;
  --text-font: "Inter", system-ui, -apple-system, sans-serif;

  --gut: clamp(20px, 5vw, 60px);
  --maxw: 1220px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--text-font); font-size: clamp(16px, .5vw + 14px, 17.5px);
  line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(70% 50% at 82% -6%, rgba(249,94,63,.16), transparent 62%),
    radial-gradient(60% 46% at 6% 4%, rgba(84,183,43,.14), transparent 60%);
}

img, svg { display: block; max-width: 100%; }
p { margin: 0; }
a { color: var(--g2); text-underline-offset: .2em; }
a:hover { color: var(--g3); }
:focus-visible { outline: 2px solid var(--g2); outline-offset: 3px; border-radius: 3px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); position: relative; z-index: 1; }
.skip { position: absolute; left: -9999px; background: var(--g2); color: var(--bg); padding: .6em 1em; z-index: 99; }
.skip:focus { left: 12px; top: 12px; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.1; margin: 0; letter-spacing: -.015em; }
.eyebrow { font-family: var(--display); font-weight: 500; text-transform: uppercase; letter-spacing: .22em; font-size: .7rem; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: .86rem; line-height: 1.55; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- шапка ---------- */

.topbar { position: sticky; top: 0; z-index: 30; background: rgba(30,12,60,.82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-soft); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: inherit; }
.brand img { width: 40px; }
.brand span { font-family: var(--display); font-weight: 700; font-size: 1.06rem; letter-spacing: -.02em; }
.top nav { display: flex; align-items: center; gap: clamp(.7rem, 2vw, 1.6rem); font-size: .88rem; }
.top nav a { color: var(--text); text-decoration: none; }
.top nav a:hover { color: var(--g2); }
.lang { color: var(--muted); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.lang a { color: var(--muted); text-decoration: none; }
.lang a:hover { color: var(--g2); }

/* ---------- герой ---------- */

.hero { padding-block: clamp(52px, 9vw, 116px) clamp(40px, 6vw, 80px); }
.hero__in { display: grid; gap: clamp(26px, 4vw, 48px); align-items: center; }
@media (min-width: 900px) { .hero__in { grid-template-columns: 1.15fr .85fr; } }
.hero h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
.hero p.lead { margin-top: 1.3rem; font-size: clamp(1.06rem, .6vw + .95rem, 1.3rem); color: var(--muted); max-width: 46ch; }
.hero__mark { width: min(360px, 74vw); margin-inline: auto; filter: drop-shadow(0 24px 60px rgba(249,94,63,.28)); }
@media (prefers-reduced-motion: no-preference) {
  .hero__mark { animation: float 9s ease-in-out infinite; }
  @keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-14px) } }
}

.cta {
  display: inline-flex; align-items: center; gap: .6em; margin-top: 2rem;
  background: var(--grad); color: #1B0A36; font-family: var(--display); font-weight: 700;
  padding: .85em 1.7em; border-radius: 999px; text-decoration: none; font-size: .96rem;
}
.cta:hover { color: #1B0A36; filter: brightness(1.08); }
.cta--ghost { background: none; border: 1px solid var(--line); color: var(--text); }
.cta--ghost:hover { border-color: var(--g2); color: var(--g2); filter: none; }

/* ---------- секции ---------- */

.band { padding-block: clamp(56px, 8vw, 104px); border-top: 1px solid var(--line-soft); position: relative; z-index: 1; }
.band--tint { background: linear-gradient(180deg, var(--bg-2), var(--bg) 78%); }
.sec-head { display: grid; gap: .8rem; max-width: 60ch; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head h2 { font-size: clamp(1.8rem, 4.4vw, 2.9rem); }
.sec-head p { color: var(--muted); }

/* ---------- конвейер ---------- */

.pipe__rail { position: relative; margin-bottom: clamp(26px, 3.4vw, 40px); }
.pipe__track { position: absolute; left: 0; right: 0; top: 13px; height: 2px; background: var(--line); }
.pipe__fill { position: absolute; left: 0; top: 13px; height: 2px; background: var(--grad); background-size: 560px 2px; transition: width .45s cubic-bezier(.2,.7,.2,1); }
@media (prefers-reduced-motion: reduce) { .pipe__fill { transition: none; } }
.pipe__steps { position: relative; display: flex; justify-content: space-between; gap: .4rem; }
.pipe__step {
  appearance: none; background: none; border: 0; cursor: pointer; padding: 0; color: var(--muted);
  display: grid; justify-items: center; gap: .7rem; flex: 1; font: inherit; text-align: center;
}
.pipe__dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); background: var(--bg); display: grid; place-items: center; font-family: var(--display); font-size: .78rem; font-weight: 700; }
.pipe__step b { font-family: var(--display); font-weight: 500; font-size: clamp(.72rem, 1.7vw, .9rem); letter-spacing: .02em; }
.pipe__step[aria-selected="true"] { color: var(--text); }
.pipe__step[aria-selected="true"] .pipe__dot { border-color: transparent; background: var(--grad); color: #1B0A36; }
.pipe__step:hover { color: var(--text); }

.pipe__panel { border: 1px solid var(--line); background: rgba(51,25,95,.55); padding: clamp(22px, 3vw, 38px); display: grid; gap: 1rem; min-height: 12.5em; align-content: start; }
.pipe__panel h3 { font-size: clamp(1.3rem, 2.6vw, 1.8rem); }
.pipe__panel ul { margin: 0; padding-left: 1.1em; color: var(--muted); display: grid; gap: .35rem; }
.pipe__panel li::marker { color: var(--g3); }
.pipe__out { font-size: .88rem; color: var(--muted); border-top: 1px solid var(--line-soft); padding-top: .9rem; }
.pipe__out b { color: var(--text); font-weight: 600; }

/* ---------- услуги ---------- */

.cards { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
@media (min-width: 680px)  { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--bg); padding: clamp(22px, 3vw, 34px); display: grid; gap: .7rem; align-content: start; }
.card__n { font-family: var(--display); font-weight: 700; font-size: .8rem; letter-spacing: .1em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.card h3 { font-size: 1.18rem; }
.card p { color: var(--muted); font-size: .95rem; }

/* ---------- как работаем ---------- */

.points { display: grid; gap: clamp(20px, 2.6vw, 32px); }
@media (min-width: 760px) { .points { grid-template-columns: repeat(2, 1fr); } }
.point { display: grid; gap: .4rem; padding-left: 1.3em; position: relative; }
.point::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
.point b { font-family: var(--display); font-weight: 500; font-size: 1.05rem; }
.point span { color: var(--muted); font-size: .95rem; }

/* ---------- модели ---------- */

.models { display: grid; gap: clamp(16px, 2vw, 22px); }
@media (min-width: 820px) { .models { grid-template-columns: repeat(3, 1fr); } }
.model { border: 1px solid var(--line); padding: clamp(20px, 2.6vw, 30px); display: grid; gap: .6rem; align-content: start; background: rgba(51,25,95,.35); }
.model h3 { font-size: 1.16rem; }
.model p { color: var(--muted); font-size: .94rem; }
.model span { font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line-soft); padding-top: .7rem; margin-top: .3rem; }

/* ---------- контакт ---------- */

.contact { display: grid; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (min-width: 900px) { .contact { grid-template-columns: .9fr 1.1fr; } }
.contact__mail { font-family: var(--display); font-weight: 500; font-size: clamp(1.15rem, 3vw, 1.6rem); text-decoration: none; }
.contact__note { margin-top: 1.4rem; }

form.f { display: grid; gap: 1rem; }
.f label { display: grid; gap: .4rem; font-size: .86rem; color: var(--muted); }
.f input[type="text"], .f input[type="email"], .f textarea {
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
  font-family: var(--text-font); font-size: 1rem; padding: .7em .85em; border-radius: 4px; width: 100%;
}
.f textarea { min-height: 9em; resize: vertical; }
.f input:focus, .f textarea:focus { border-color: var(--g2); }
.f__consent { display: flex; gap: .7em; align-items: flex-start; font-size: .84rem; color: var(--muted); }
.f__consent input { margin-top: .28em; accent-color: var(--g1); flex: none; }
.f__hp { position: absolute; left: -9999px; }
.f button {
  justify-self: start; cursor: pointer; border: 0; background: var(--grad); color: #1B0A36;
  font-family: var(--display); font-weight: 700; font-size: .95rem; padding: .85em 1.8em; border-radius: 999px;
}
.f button:disabled { opacity: .55; cursor: default; }
.f__msg { font-size: .9rem; min-height: 1.4em; }
.f__msg[data-state="ok"]  { color: var(--g2); }
.f__msg[data-state="err"] { color: #FF8E76; }

/* ---------- подвал ---------- */

.foot { border-top: 1px solid var(--line-soft); padding-block: clamp(30px, 4vw, 48px); }
.foot__row { display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; align-items: center; justify-content: space-between; }
.foot img { width: 34px; }
.foot__legal { margin-top: 1.2rem; color: var(--muted); font-size: .8rem; max-width: 74ch; }
.foot__legal p + p { margin-top: .3em; }
