/* ===== GeneriX Dev — landing styles ===== */

:root {
  --paper: #f6f4ee;
  --paper-2: #efece3;
  --ink: #17160f;
  --ink-soft: #4a4838;
  --line: rgba(23, 22, 15, 0.14);
  --line-strong: rgba(23, 22, 15, 0.32);
  --accent: #2b2ff3;
  --accent-ink: #ffffff;
  --rust: #d9480f;
  --dark: #131211;
  --dark-2: #1c1b17;
  --radius: 2px;
  --ff-display: "Instrument Serif", serif;
  --ff-body: "Archivo", sans-serif;
  --ff-mono: "JetBrains Mono", monospace;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-family: var(--ff-display); font-weight: 400; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.mono { font-family: var(--ff-mono); letter-spacing: 0.04em; text-transform: uppercase; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* subtle grain texture overlay */
.grain {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 244, 238, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-mono);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.06em;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  border-radius: 50%;
}
.logo-mark.small { width: 24px; height: 24px; font-size: 11px; }

.logo-text em { font-style: normal; color: var(--accent); }

.nav { display: flex; align-items: center; gap: 32px; font-size: 14.5px; }
.nav a { position: relative; padding: 4px 0; }
.nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}
.nav a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; }

.nav-cta {
  background: var(--ink);
  color: var(--paper);
  padding: 10px 28px !important;
  border-radius: var(--radius);
  font-weight: 600;
  transition: background 0.2s ease;
}
.nav-cta:hover { background: var(--accent); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}
.burger span { width: 22px; height: 2px; background: var(--ink); display: block; }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 120px 0 140px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 85% 0%, rgba(43,47,243,0.07), transparent 55%),
    repeating-linear-gradient(0deg, transparent 0 39px, var(--line) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, var(--line) 39px 40px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
  overflow: hidden;
}

.hero-grid { position: relative; z-index: 2; max-width: 760px; }

.hero-tag {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-bottom: 28px;
}

.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}
.hero-title .i { font-style: italic; color: var(--ink-soft); }

.accent-underline {
  position: relative;
  display: inline-block;
}
.accent-underline::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 6px;
  height: 0.34em;
  background: var(--accent);
  z-index: -1;
  opacity: 0.28;
}

.hero-sub {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 560px;
  margin-bottom: 40px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover { background: var(--accent); transform: translateY(-2px); }
.btn-ghost {
  border-color: transparent;
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--paper-2); }

.hero-frame {
  position: absolute;
  top: 40px; right: 32px;
  width: 160px; height: 160px;
}
.coord {
  position: absolute;
  bottom: -26px; right: 0;
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
}
.corner {
  position: absolute;
  width: 18px; height: 18px;
  border: 1.5px solid var(--ink);
}
.corner.tl { top: 0; left: 0; border-width: 1.5px 0 0 1.5px; }
.corner.tr { top: 0; right: 0; border-width: 1.5px 1.5px 0 0; }
.corner.bl { bottom: 0; left: 0; border-width: 0 0 1.5px 1.5px; }
.corner.br { bottom: 0; right: 0; border-width: 0 1.5px 1.5px 0; }

/* ===== Sections ===== */
.section { padding: 110px 0; border-bottom: 1px solid var(--line); }

.section-head { max-width: 620px; margin-bottom: 64px; }
.section-head h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 16px;
}
.section-lede { color: var(--ink-soft); font-size: 16.5px; }
h2.light { color: #fff; }
.section-lede.light { color: rgba(255,255,255,0.62); }

/* ===== Services cards ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.card {
  background: var(--paper);
  padding: 40px 32px;
  position: relative;
  transition: background 0.25s ease;
}
.card:hover { background: var(--paper-2); }
.card-index {
  display: block;
  font-size: 12px;
  color: var(--rust);
  margin-bottom: 24px;
}
.card h3 { font-size: 1.7rem; margin-bottom: 14px; }
.card > p { color: var(--ink-soft); margin-bottom: 22px; font-size: 15px; }
.card-list li {
  font-size: 14.5px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}
.card-list li:first-child { border-top: none; }
.card-list li::before { content: "— "; color: var(--rust); }

/* ===== Advantages (dark) ===== */
.section-dark {
  background: var(--dark);
  color: rgba(255,255,255,0.86);
  background-image:
    radial-gradient(ellipse at 15% 100%, rgba(43,47,243,0.16), transparent 55%);
}
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 40px;
}
.adv h3 { font-size: 1.3rem; color: #fff; margin-bottom: 10px; }
.adv p { color: rgba(255,255,255,0.58); font-size: 15px; }

/* ===== Team ===== */
.team-head { margin-bottom: 56px; }
.specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.spec {
  background: var(--paper);
  padding: 34px 28px;
  transition: background 0.25s ease, transform 0.25s ease;
}
.spec:hover { background: var(--ink); transform: translateY(-2px); }
.spec:hover .spec-tag { color: #ff9466; }
.spec:hover p { color: rgba(255,255,255,0.7); }
.spec-tag {
  display: inline-block;
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 12px;
  transition: color 0.25s ease;
}
.spec p { font-size: 15px; color: var(--ink-soft); transition: color 0.25s ease; }

/* ===== Order form ===== */
.section-order { background: var(--paper-2); border-bottom: none; }
.order-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: start;
}
.order-head { position: sticky; top: 110px; }
.order-frame {
  position: relative;
  width: 100px; height: 100px;
  margin-top: 40px;
}
.order-head .corner { border-color: var(--rust); }

.order-form {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 44px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.field { display: flex; flex-direction: column; gap: 10px; }
.field label {
  font-family: var(--ff-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.field-counter {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  align-self: flex-end;
}
.field-counter.err { color: var(--rust); }
.field-counter.ok { color: #1a7d3a; }
.field input, .field textarea {
  font-family: var(--ff-body);
  font-size: 16px;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(43,47,243,0.12);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(23,22,15,0.35); }

.btn-submit {
  justify-content: center;
  position: relative;
  margin-top: 6px;
}
.btn-submit:disabled { opacity: 0.65; cursor: not-allowed; }
.btn-loader {
  display: none;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn-submit.loading .btn-loader { display: inline-block; }
.btn-submit.loading .btn-text { opacity: 0.7; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-status {
  font-size: 14.5px;
  min-height: 20px;
}
.form-status.ok { color: #1a7d3a; }
.form-status.err { color: var(--rust); }

/* ===== Footer ===== */
.site-footer { padding: 40px 0; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-mono);
  font-size: 13px;
}
.footer-brand em { font-style: normal; color: var(--accent); }
.footer-contacts { display: flex; gap: 24px; font-size: 12.5px; }
.footer-contacts a { border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; }
.footer-contacts a:hover { color: var(--accent); border-color: var(--accent); }
.footer-copy { font-size: 12px; color: var(--ink-soft); }

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav { position: fixed; top: 76px; left: 0; right: 0; background: var(--paper);
    flex-direction: column; align-items: flex-start; padding: 24px 32px; gap: 20px;
    border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0;
    pointer-events: none; transition: all 0.2s ease; }
  .nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .burger { display: flex; }
  .cards, .advantages-grid, .specs { grid-template-columns: 1fr; }
  .order-grid { grid-template-columns: 1fr; }
  .order-head { position: static; }
  .hero-frame { display: none; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .order-form { padding: 28px 24px; }
  .hero { padding: 90px 0 90px; }
  .section { padding: 72px 0; }
}
