:root {
  --accent: #E74C3C;
  --dark: #1C2834;
  --bg: #FAFAFA;
  --bg-alt: #ECF0F1;
  --font-sans: "Manrope", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--dark);
  font-family: var(--font-sans);
  font-display: swap;
  overflow-x: hidden;
}

a {
  color: var(--dark);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

input,
button {
  font-family: inherit;
}

::placeholder {
  color: rgba(28, 40, 52, 0.33);
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: clamp(18px, 4vw, 56px);
  padding-right: clamp(18px, 4vw, 56px);
}

.mono {
  font-family: var(--font-mono);
}

.accent-text {
  color: var(--accent);
}

.section-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 18px;
}

.section-title {
  margin: 0;
  font-size: clamp(26px, 3.8vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.section-title-tight {
  margin-bottom: 24px;
}

.section-title-light {
  color: var(--bg);
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section {
  padding-top: clamp(56px, 9vw, 130px);
  padding-bottom: clamp(56px, 9vw, 130px);
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid rgba(28, 40, 52, 0.09);
  border-bottom: 1px solid rgba(28, 40, 52, 0.09);
}

.section-dark {
  background: var(--dark);
  color: var(--bg);
  padding-top: 0;
  padding-bottom: 0;
}

.section-dark .container {
  padding-top: clamp(56px, 9vw, 130px);
  padding-bottom: clamp(56px, 9vw, 130px);
}

/* header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 250, 250, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(28, 40, 52, 0.09);
}

.header-inner {
  padding-top: clamp(8px, 1.3vw, 15px);
  padding-bottom: clamp(8px, 1.3vw, 15px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.8vw, 18px);
}

.brand-logo {
  width: clamp(45px, 9vw, 68px);
  height: clamp(45px, 9vw, 68px);
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.brand-name {
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: clamp(18px, 1.8vw, 21px);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 30px);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-link-hidden {
  display: none;
}

.nav-cta {
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 8px 14px;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-cta:hover {
  background: var(--accent);
  color: var(--bg);
}

/* hero */

.hero {
  padding-top: clamp(24px, 4vw, 56px);
  padding-bottom: clamp(48px, 8vw, 110px);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(28, 40, 52, 0.6);
  margin-bottom: clamp(20px, 3vw, 34px);
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
}

.hero-title {
  margin: 0;
  font-size: clamp(28px, 3.9vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 800;
  text-wrap: pretty;
}

.hero-actions {
  margin-top: clamp(28px, 4vw, 40px);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  padding: 16px 28px;
  font-weight: 700;
  letter-spacing: 0.01em;
  gap: 12px;
}

.btn-primary:hover {
  background: var(--dark);
  color: var(--bg);
}

.btn-secondary {
  padding: 16px 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(28, 40, 52, 0.2);
}

.hero-diagram {
  border: 1px solid rgba(28, 40, 52, 0.13);
  background: var(--bg-alt);
  padding: clamp(14px, 2vw, 22px);
  position: relative;
}

.diagram-label {
  position: absolute;
  top: 12px;
  left: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(28, 40, 52, 0.47);
  text-transform: uppercase;
}

.hero-svg {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 22px;
}

.hero-lead {
  margin: clamp(34px, 5vw, 56px) 0 0;
  padding-top: clamp(26px, 3.5vw, 40px);
  border-top: 1px solid rgba(28, 40, 52, 0.13);
  font-size: clamp(16px, 1.9vw, 22px);
  line-height: 1.55;
  letter-spacing: -0.005em;
  color: rgba(28, 40, 52, 0.8);
  text-wrap: pretty;
}

/* fund section */

.fund-section {
  background: var(--bg-alt);
  border-top: 1px solid rgba(28, 40, 52, 0.09);
  border-bottom: 1px solid rgba(28, 40, 52, 0.09);
}

.fund-inner {
  padding-top: clamp(32px, 5vw, 56px);
  padding-bottom: clamp(32px, 5vw, 56px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.fund-logos {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 36px);
  flex-wrap: wrap;
}

.fund-logo {
  height: clamp(72px, 10vw, 120px);
  display: flex;
  align-items: center;
}

.fund-logo img {
  height: 100%;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  display: block;
}

.fund-text {
  margin: 0;
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.7;
  color: rgba(28, 40, 52, 0.8);
  text-wrap: pretty;
}

/* about */

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(28px, 5vw, 72px);
}

.about-content {
  border-top: 1px solid rgba(28, 40, 52, 0.13);
  padding-top: clamp(20px, 3vw, 34px);
}

.about-lead {
  margin: 0 0 20px;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.7;
  color: var(--dark);
  max-width: 60ch;
  text-wrap: pretty;
}

.about-text {
  margin: 0 0 28px;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.7;
  color: var(--dark);
  max-width: 60ch;
  text-wrap: pretty;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: rgba(28, 40, 52, 0.13);
  border: 1px solid rgba(28, 40, 52, 0.13);
}

.stat-item {
  background: var(--bg);
  padding: 22px 20px;
}

.stat-value {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.stat-value-accent {
  color: var(--accent);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(28, 40, 52, 0.6);
  margin-top: 8px;
  text-transform: uppercase;
}

/* cell section */

.cell-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(28px, 5vw, 72px);
}

.cell-text {
  margin: 0 0 18px;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.7;
  color: rgba(28, 40, 52, 0.8);
  max-width: 52ch;
  text-wrap: pretty;
}

.cell-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(28, 40, 52, 0.67);
}

.cell-list li {
  display: flex;
  gap: 12px;
}

.cell-diagram {
  background-color: var(--bg);
  background-image:
    repeating-linear-gradient(0deg, rgba(28, 40, 52, 0.07) 0, rgba(28, 40, 52, 0.07) 1px, transparent 1px, transparent 60px),
    repeating-linear-gradient(90deg, rgba(28, 40, 52, 0.07) 0, rgba(28, 40, 52, 0.07) 1px, transparent 1px, transparent 60px);
  border: 1px solid rgba(28, 40, 52, 0.13);
  padding: clamp(16px, 2.5vw, 30px);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* На ширинах ≥662px .cell-grid держит колонки в ряд (minmax(280px,1fr) + gap
   перестают помещаться в 2 колонки ниже этой точки) — сдвигаем рамку вниз
   на высоту .section-num (16px строка + 18px margin-bottom = 34px), чтобы
   верх рамки совпал с верхом заголовка, а не с "02" над ним. */
@media (min-width: 662px) {
  .cell-diagram {
    margin-top: 34px;
  }
}

.cell-drawing {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* laser section */

.laser-text {
  margin: 0;
  margin-top: clamp(14px, 2vw, 20px);
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.7;
  color: rgba(28, 40, 52, 0.73);
  text-wrap: pretty;
}

.laser-steps {
  margin-top: clamp(24px, 3.5vw, 44px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: rgba(28, 40, 52, 0.13);
  border: 1px solid rgba(28, 40, 52, 0.13);
}

.laser-step {
  background: var(--bg);
  padding: clamp(20px, 3vw, 32px);
}

.step-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(28, 40, 52, 0.47);
  margin-bottom: 18px;
}

.step-label-accent {
  color: var(--accent);
}

.step-svg {
  width: 100%;
  height: auto;
  display: block;
}

.step-title {
  margin-top: 20px;
  font-weight: 700;
  font-size: 17px;
}

.step-desc {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(28, 40, 52, 0.6);
}

/* advantages */

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: rgba(250, 250, 250, 0.13);
  border: 1px solid rgba(250, 250, 250, 0.13);
}

.advantage-card {
  background: var(--dark);
  padding: clamp(24px, 3vw, 34px);
}

.advantage-icon {
  width: 38px;
  height: 38px;
  display: block;
  margin-bottom: 26px;
}

.advantage-title {
  font-weight: 700;
  font-size: clamp(17px, 1.8vw, 19px);
  line-height: 1.25;
}

.advantage-text {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(250, 250, 250, 0.67);
  text-wrap: pretty;
}

/* contacts */

.contacts-single {
  max-width: 640px;
}

.contacts-single .section-title {
  margin-bottom: clamp(28px, 4vw, 40px);
}

.contact-list {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(28, 40, 52, 0.13);
}

.contact-row {
  display: flex;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(28, 40, 52, 0.13);
  align-items: baseline;
}

.contact-label {
  flex: 0 0 110px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(28, 40, 52, 0.6);
}

.contact-value-strong {
  font-weight: 700;
}

.contact-phone {
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.contact-email {
  font-weight: 500;
}

/* footer */

.site-footer {
  background: var(--dark);
  color: var(--bg);
}

.footer-inner {
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(20px, 3vw, 28px);
}

.brand-logo-footer {
  width: clamp(80px, 14vw, 110px);
  height: clamp(80px, 14vw, 110px);
}

.footer-brand-name {
  font-weight: 800;
  letter-spacing: 0.04em;
}

.footer-brand-city {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(250, 250, 250, 0.53);
  margin-top: 4px;
}

.footer-requisites,
.footer-copy {
  font-size: 11px;
  line-height: 2;
  letter-spacing: 0.04em;
  color: rgba(250, 250, 250, 0.53);
}

.footer-copy div:last-child {
  text-wrap: pretty;
}

/* scroll reveal animation */

html.js-anim .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease-out, transform 0.55s ease-out;
}

html.js-anim .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html.js-anim .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
