/* ============================================================
   devlab — landing page styles
   Dark premium theme, lime accent, single accent color
   ============================================================ */

:root {
  --bg: #0b0b10;
  --bg-alt: #0f0f17;
  --card: #14141f;
  --card-hover: #181826;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --txt: #f5f6f8;
  --mut: #9b9cae;
  --acc: #c7f464;
  --acc-dim: rgba(199, 244, 100, 0.12);
  --acc-line: rgba(199, 244, 100, 0.35);
  --vio: #8b7bff;
  --radius: 18px;
  --container: 1160px;
  --font-head: 'Unbounded', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--txt);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--acc); color: var(--bg); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow { max-width: 820px; }

/* ---------- Typography ---------- */
.grad {
  background: linear-gradient(100deg, var(--acc) 10%, var(--vio) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }

.section__head { max-width: 640px; margin-bottom: 56px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }

.section__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--acc);
  background: var(--acc-dim);
  border: 1px solid var(--acc-line);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.section__title {
  font-family: var(--font-head);
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.section__sub { margin-top: 16px; color: var(--mut); font-size: 17px; max-width: 560px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  border-radius: 12px;
  padding: 13px 26px;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn--lg { padding: 16px 32px; font-size: 16px; }
.btn--block { width: 100%; }

.btn--primary {
  background: var(--acc);
  color: #0d0d12;
  box-shadow: 0 8px 24px rgba(199, 244, 100, 0.18);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(199, 244, 100, 0.28); }

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--txt);
  background: rgba(255, 255, 255, 0.03);
}
.btn--ghost:hover { border-color: var(--acc-line); color: var(--acc); transform: translateY(-2px); }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(11, 11, 16, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.header.is-scrolled { border-bottom-color: var(--line); background: rgba(11, 11, 16, 0.9); }

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

.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 600; font-size: 17px; }

.logo__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--acc);
  color: var(--bg);
  font-size: 13px;
  font-weight: 700;
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav__link { font-size: 14.5px; font-weight: 600; color: var(--mut); transition: color 0.2s ease; }
.nav__link:hover { color: var(--txt); }
.nav__cta { padding: 10px 20px; font-size: 14px; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; }
.burger span { width: 22px; height: 2px; background: var(--txt); border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 180px 0 90px; overflow: hidden; }

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 75%);
  pointer-events: none;
}

.hero__glow {
  position: absolute;
  top: -260px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 560px;
  background: radial-gradient(ellipse at center, rgba(199, 244, 100, 0.14) 0%, rgba(139, 123, 255, 0.08) 45%, transparent 70%);
  pointer-events: none;
}

.hero__content { position: relative; max-width: 860px; }

.hero__badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }

.chip {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--mut);
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.hero__title {
  font-family: var(--font-head);
  font-size: clamp(32px, 5.6vw, 58px);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.hero__sub { margin-top: 24px; max-width: 620px; color: var(--mut); font-size: clamp(16px, 2vw, 18px); }

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
  overflow: hidden;
  padding: 18px 0;
}

.marquee__track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 36s linear infinite;
}

.marquee__track span {
  font-size: 15px;
  font-weight: 700;
  color: var(--mut);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Grids ---------- */
.grid { display: grid; gap: 20px; }
.grid--services { grid-template-columns: repeat(3, 1fr); }
.grid--pricing { grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid--guarantees { grid-template-columns: repeat(3, 1fr); }

/* ---------- Cards ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  background: var(--card-hover);
  box-shadow: var(--shadow);
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--acc-dim);
  color: var(--acc);
  font-size: 15px;
  border: 1px solid var(--acc-line);
  margin-bottom: 20px;
}

.card__title { font-size: 18px; font-weight: 800; margin-bottom: 10px; letter-spacing: -0.01em; }

.card__text { color: var(--mut); font-size: 14.5px; margin-bottom: 18px; }

.card__list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.card__list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--mut);
}
.card__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--acc);
  font-weight: 800;
  font-size: 13px;
}

.card__price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.card__price-num { font-family: var(--font-head); font-size: 17px; font-weight: 600; color: var(--txt); }
.card__price-note { font-size: 13px; color: var(--mut); }

.card--service { display: flex; flex-direction: column; }

/* ---------- Pricing ---------- */
.card--price { display: flex; flex-direction: column; padding: 30px 26px; position: relative; }
.card--price .card__list { flex-grow: 1; }
.card--price .btn { margin-top: 4px; }

.card__price-big {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 600;
  margin: 6px 0 20px;
}

.card__hint { margin-top: 14px; font-size: 12.5px; color: var(--mut); text-align: center; }

.pricing__note {
  margin-top: 40px;
  padding: 24px 28px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 32px;
  font-size: 14.5px;
  color: var(--mut);
}
.pricing__note strong { color: var(--txt); }

/* ---------- Calculator ---------- */
.calc {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  align-items: start;
}

.calc__options {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.calc__label {
  font-size: 12px;
  font-weight: 800;
  color: var(--mut);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.calc__label:not(:first-child) { margin-top: 26px; }

.calc__types { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }

.calc__type {
  padding: 12px 8px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--mut);
  font-weight: 700;
  font-size: 13.5px;
  text-align: center;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.calc__type:hover { border-color: var(--line-strong); color: var(--txt); }
.calc__type.is-active {
  border-color: var(--acc-line);
  background: var(--acc-dim);
  color: var(--acc);
}

.calc__features { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.calc__feature {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  font-size: 13.5px;
  transition: border-color 0.2s ease;
}
.calc__feature:hover { border-color: var(--line-strong); }

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

.calc__feature-box {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.calc__feature input:checked + .calc__feature-box {
  background: var(--acc);
  border-color: var(--acc);
}
.calc__feature input:checked + .calc__feature-box::after {
  content: '✓';
  color: var(--bg);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}
.calc__feature:has(input:checked) { border-color: var(--acc-line); }

.calc__feature-name { flex: 1; color: var(--txt); font-weight: 600; }
.calc__feature-price { color: var(--acc); font-weight: 800; white-space: nowrap; }

.calc__result {
  position: sticky;
  top: 96px;
  background: linear-gradient(180deg, rgba(199, 244, 100, 0.08), var(--card) 60%);
  border: 1px solid var(--acc-line);
  border-radius: var(--radius);
  padding: 28px;
}

.calc__result-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--mut);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.calc__price {
  font-family: var(--font-head);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  margin: 14px 0 6px;
}

.calc__result-note { color: var(--mut); font-size: 14.5px; margin-bottom: 22px; }

.calc__disclaimer { margin-top: 14px; font-size: 12.5px; color: var(--mut); }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.step:hover { transform: translateY(-4px); border-color: var(--line-strong); }

.step__num {
  display: inline-flex;
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 600;
  color: transparent;
  -webkit-text-stroke: 1px var(--acc);
  margin-bottom: 18px;
}

.step__title { font-size: 16.5px; font-weight: 800; margin-bottom: 8px; }
.step__text { color: var(--mut); font-size: 14px; }

/* ---------- Guarantees ---------- */
.guarantee {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color 0.25s ease;
}
.guarantee:hover { border-color: var(--acc-line); }
.guarantee__title { font-size: 16px; font-weight: 800; margin-bottom: 8px; display: flex; gap: 12px; align-items: flex-start; }
.guarantee__title::before {
  content: '';
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--acc);
  margin-top: 8px;
}
.guarantee__text { color: var(--mut); font-size: 14px; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; }

.faq__item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color 0.25s ease;
}
.faq__item[open] { border-color: var(--acc-line); }

.faq__item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-weight: 700;
  font-size: 15.5px;
  cursor: pointer;
  user-select: none;
}
.faq__item summary::-webkit-details-marker { display: none; }

.faq__icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  position: relative;
  transition: transform 0.25s ease, background 0.25s ease;
}
.faq__icon::before, .faq__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--txt);
  border-radius: 1px;
}
.faq__icon::before { width: 12px; height: 2px; }
.faq__icon::after { width: 2px; height: 12px; }
.faq__item[open] .faq__icon { transform: rotate(45deg); background: var(--acc-dim); border-color: var(--acc-line); }

.faq__item p { padding: 0 24px 22px; color: var(--mut); font-size: 14.5px; max-width: 640px; }

/* ---------- Contact ---------- */
.section--contact { background: var(--bg-alt); }

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 56px;
}

.contact__text { color: var(--mut); font-size: 15.5px; margin: 18px 0 32px; max-width: 420px; }

.contact__links { display: flex; flex-direction: column; gap: 14px; }

.contact__link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 15px;
  color: var(--txt);
  transition: color 0.2s ease;
}
.contact__link:hover { color: var(--acc); }

.contact__link-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--acc-dim);
  border: 1px solid var(--acc-line);
  color: var(--acc);
  font-size: 16px;
}

/* ---------- Form ---------- */
.form { display: flex; flex-direction: column; gap: 18px; }

.form__row { display: flex; flex-direction: column; gap: 8px; }
.form__label { font-size: 13px; font-weight: 700; color: var(--mut); }

.form__input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--txt);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form__input::placeholder { color: rgba(155, 156, 174, 0.6); }
.form__input:focus {
  outline: none;
  border-color: var(--acc-line);
  box-shadow: 0 0 0 3px var(--acc-dim);
}
.form__textarea { resize: vertical; min-height: 110px; }

.form__note { font-size: 12.5px; color: var(--mut); }
.form__status { font-size: 14px; font-weight: 700; min-height: 20px; }
.form__status.is-ok { color: var(--acc); }
.form__status.is-err { color: #ff7a7a; }

select.form__input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239b9cae' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}
select.form__input option { background: var(--bg); color: var(--txt); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 48px 0; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer__note { margin-top: 14px; color: var(--mut); font-size: 13.5px; max-width: 320px; }
.footer__nav { display: flex; flex-direction: column; gap: 10px; }
.footer__nav a { color: var(--mut); font-size: 14px; font-weight: 600; transition: color 0.2s ease; }
.footer__nav a:hover { color: var(--acc); }
.footer__meta { font-size: 13.5px; color: var(--mut); display: flex; flex-direction: column; gap: 8px; }

/* ---------- FAB ---------- */
.fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--acc);
  color: var(--bg);
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(199, 244, 100, 0.35);
  transition: transform 0.2s ease;
}
.fab:hover { transform: translateY(-3px) scale(1.05); }
.fab.is-visible { display: inline-flex; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid--services { grid-template-columns: repeat(2, 1fr); }
  .grid--pricing { grid-template-columns: repeat(2, 1fr); }
  .grid--guarantees { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .calc { grid-template-columns: 1fr; }
  .calc__result { position: static; }
}

@media (max-width: 860px) {
  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(11, 11, 16, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 16px 24px 24px;
    transform: translateY(-120%);
    transition: transform 0.3s ease;
  }
  .nav.is-open { transform: none; }
  .nav__link { padding: 12px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav__cta { margin-top: 12px; }
  .burger { display: inline-flex; }

  .contact { grid-template-columns: 1fr; padding: 36px 28px; gap: 40px; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .pricing__note { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .section { padding: 64px 0; }
  .hero { padding-top: 150px; }
  .grid--services, .grid--pricing, .grid--guarantees, .steps { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .calc__types { grid-template-columns: repeat(2, 1fr); }
  .calc__features { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
