/* ============================================================
   ФЛЕКСТЭК — ДИЗАЙН B: TECH MINIMAL
   Светлый, строгий, инженерный вариант.
   ============================================================ */

:root {
  --bg: #f5f7f9;
  --surface: #ffffff;
  --text: #132533;
  --muted: #637480;
  --line: #d9e1e7;
  --accent: #167fb5;
  --accent-light: #e6f3f9;
  --dark: #18303f;

  --container: 1160px;
  --page-pad: 40px;
  --radius: 18px;
  --section-pad: 82px;
  --font: Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
}

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

/* ---------- ШАПКА ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 800;
}

.brand-logo {
  width: 170px;
  height: auto;
}

.brand-name {
  font-size: 20px;
}

.nav {
  display: flex;
  gap: 25px;
  font-size: 14px;
  font-weight: 650;
}

.nav a {
  color: #526570;
  text-decoration: none;
}

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

/* ---------- ПЕРВЫЙ ЭКРАН ---------- */

.hero {
  padding: 82px 0 74px;
  background:
    linear-gradient(90deg, rgba(22,127,181,.045) 1px, transparent 1px),
    linear-gradient(rgba(22,127,181,.045) 1px, transparent 1px),
    linear-gradient(180deg, #ffffff 0%, #f5f7f9 100%);
  background-size:
    44px 44px,
    44px 44px,
    auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  align-items: center;
  gap: 68px;
}

.eyebrow,
.section-label {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .15em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(44px, 5.8vw, 70px);
  line-height: 1.02;
  letter-spacing: -.05em;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(30px, 3.8vw, 44px);
  line-height: 1.1;
  letter-spacing: -.035em;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.lead {
  max-width: 700px;
  color: var(--muted);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin: 30px 0 22px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 21px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 800;
}

.button.primary {
  color: #ffffff;
  background: var(--accent);
}

.button.secondary {
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--line);
}

.status {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-visual {
  position: relative;
}

.visual-badge {
  position: absolute;
  z-index: 2;
  top: 15px;
  left: 15px;
  padding: 7px 11px;
  border-radius: 8px;
  color: var(--accent);
  background: #ffffff;
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.visual-placeholder {
  min-height: 480px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 15px;

  text-align: center;

  background:
    linear-gradient(
      135deg,
      rgba(22, 127, 181, 0.04),
      rgba(255, 255, 255, 0.9)
    );

  border: 1px solid var(--line);
  border-radius: 22px;

  box-shadow:
    0 20px 60px rgba(26, 55, 74, 0.07);

  overflow: hidden;
}


/* Изображение опытного образца куртки */
.prototype-image {
  display: block;

  width: 100%;
  height: 450px;

  object-fit: contain;

  transition:
    filter 0.25s ease,
    transform 0.25s ease;
}


/* Эффект при наведении на куртку */
.prototype-image:hover {
  filter:
    drop-shadow(0 0 18px rgba(54, 70, 78, 0.45))
    drop-shadow(0 12px 26px rgba(20, 50, 70, 0.18));

  transform: scale(1.015);
}

.visual-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 18px;
  color: var(--accent);
  background: var(--accent-light);
  font-size: 31px;
}

.visual-title {
  font-size: 20px;
  font-weight: 800;
}

.visual-text {
  max-width: 280px;
  margin-top: 6px;
  color: var(--muted);
}

/* ---------- ОБЩИЕ СЕКЦИИ ---------- */

.section {
  padding: var(--section-pad) 0;
}

.about-section {
  background: #ffffff;
}

.about-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 74px;
  align-items: start;
}

.about-text {
  padding-left: 30px;
  border-left: 1px solid var(--line);
}

.about-text p {
  color: var(--muted);
  font-size: 18px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* ---------- ВОЗМОЖНОСТИ ---------- */

.features-section {
  background: #f0f4f6;
  border-top: 1px solid #e3e9ed;
  border-bottom: 1px solid #e3e9ed;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
}

.section-description {
  max-width: 430px;
  margin-bottom: 24px;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 36px;
}

.card {
  min-height: 210px;
  padding: 25px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;

  /* Плавная анимация при наведении */
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}


/* Эффект при наведении на карточку */
.card:hover {
  transform: translateY(-4px);
  border-color: #9fb5c2;
}

.card-number {
  display: inline-flex;
  min-width: 34px;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  border-radius: 7px;
  color: var(--accent);
  background: var(--accent-light);
  font-size: 12px;
  font-weight: 900;
}

.card p {
  margin-bottom: 0;
  color: var(--muted);
}

/* ---------- ПРИНЦИП РАБОТЫ ---------- */

.process-section {
  background: #ffffff;
}

.flow {
  display: grid;
  grid-template-columns:
    1fr auto
    1fr auto
    1fr auto
    1fr auto
    1fr;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
}

.flow-item {
  /* Одинаковые размеры всех карточек */
  height: 145px;
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 22px;
  overflow: hidden;

  text-align: center;

  background: #f9fbfc;
  border: 1px solid var(--line);
  border-radius: 15px;

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


/* Название модуля в обычном состоянии */
.flow-title {
  position: relative;
  z-index: 2;

  color: var(--text);
  font-size: 17px;
  font-weight: 800;

  transition:
    opacity 0.18s ease,
    transform 0.22s ease;
}


/* Краткое описание скрыто до наведения */
.flow-description {
  position: absolute;
  z-index: 3;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 18px;

  color: #ffffff;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;

  opacity: 0;
  transform: translateY(6px);

  transition:
    opacity 0.2s ease,
    transform 0.22s ease;
}


/* При наведении карточка затемняется, а описание появляется */
.flow-item:hover {
  background: var(--dark);
  border-color: var(--dark);
  transform: translateY(-3px);
}


.flow-item:hover .flow-title {
  opacity: 0;
  transform: translateY(-6px);
}


.flow-item:hover .flow-description {
  opacity: 1;
  transform: translateY(0);
}


.flow-line {
  width: 28px;
  height: 1px;
  background: #8fb9ce;
}

/* ---------- ПРОТОТИП ---------- */

.prototype-section {
  background: var(--dark);
  color: #ffffff;
}

.prototype-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 76px;
  align-items: start;
}

.section-label.light {
  color: #6fd2f2;
}

.prototype-copy p {
  color: #c8d5dc;
  font-size: 18px;
}

.note {
  padding-left: 16px;
  border-left: 3px solid #56bfe3;
  font-size: 14px !important;
}

.prototype-results-wrap {
  min-width: 0;
}

.prototype-results {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 16px;
  background: rgba(255,255,255,.018);
}

.results-head,
.results-row {
  display: grid;
  grid-template-columns: .9fr 1.45fr 1.05fr;
}

.results-head {
  background: rgba(255,255,255,.055);
}

.results-head > div {
  padding: 13px 16px;
  color: #78cbea;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.results-row {
  border-top: 1px solid rgba(255,255,255,.12);
}

.results-row > div {
  min-width: 0;
  padding: 17px 16px;
  line-height: 1.3;
}

.results-name {
  color: #a9c0cc;
  font-size: 14px;
}

.results-confirmed,
.results-target {
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
}

.results-confirmed {
  background: rgba(86,191,227,.045);
}

.results-confirmed span,
.results-target span {
  display: block;
  margin-top: 4px;
  color: rgba(226,237,242,.64);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
}

.results-note {
  margin: 10px 4px 0;
  color: rgba(210,224,231,.58);
  font-size: 11px;
  line-height: 1.45;
}

.prototype-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 16px;
  background: rgba(255,255,255,.025);
}

.prototype-price > span {
  color: #9fb1bb;
  font-size: 14px;
}

.price-values {
  display: flex;
  gap: 26px;
  text-align: right;
}

.price-values > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.price-values strong {
  color: #ffffff;
  font-size: 16px;
  line-height: 1.15;
}

.price-values small {
  color: rgba(210,224,231,.62);
  font-size: 10px;
  line-height: 1.25;
}

/* ---------- ПРИМЕНЕНИЕ ---------- */

.application-section {
  background: #ffffff;
}

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

.industries span {
  min-height: 62px;
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafcfd;
  color: #526570;

  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}


.industries span:hover {
  transform: translateY(-4px);
  border-color: #9fb5c2;
}

/* ---------- КОНТАКТЫ ---------- */

.contacts-section {
  padding: 54px 0;
  background: #eef3f6;
  border-top: 1px solid #e1e8ec;
  border-bottom: 1px solid #e1e8ec;
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}

.contact-card h2 {
  margin-bottom: 7px;
  font-size: clamp(26px, 2.8vw, 34px);
}

.contact-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.contact-email {
  flex: 0 0 auto;
  padding: 11px 15px;

  /* Без обводки, положение и выравнивание сохранены */
  border: none;
  border-radius: 10px;

  color: var(--accent);
  background: transparent;

  font-size: clamp(19px, 2vw, 24px);
  font-weight: 850;
  text-decoration: none;
}

/* ---------- ФСИ ---------- */

.support {
  padding: 48px 0;
  background: #ffffff;
}

.support-inner {
  display: grid;

  grid-template-columns: auto 1fr;

  align-items: center;

  gap: 40px;
}

.support-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Логотипы Фонда и Платформы */
.support-logos {
  display: flex;
  align-items: center;

  gap: 24px;
}


.support-logo {
  display: block;

  width: auto;
  height: 58px;

  object-fit: contain;
}


.platform-logo {
  height: 80px;
}

.support p {
  max-width: 900px;
  margin-bottom: 0;
  color: #303a41;
}

.support-warning {
  color: #8a6500 !important;
  font-size: 13px;
}

/* ---------- ПОДВАЛ ---------- */

.footer {
  padding: 23px 0;
  color: #8a9aa3;
  background: #122632;
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

/* ---------- МОБИЛЬНАЯ ВЕРСИЯ ---------- */

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

  .hero-grid,
  .about-grid,
  .prototype-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-text {
    padding-left: 0;
    border-left: 0;
  }

  .section-head {
    flex-direction: column;
    align-items: start;
    gap: 0;
  }

  .section-description {
    margin-bottom: 0;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .flow {
    grid-template-columns: 1fr;
  }

  .flow-line {
    width: 1px;
    height: 24px;
    justify-self: center;
  }

  /* На узких экранах высота карточек может подстраиваться под текст */
  .flow-item {
    height: auto;
    min-height: 145px;
  }

  .industries {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 620px) {
  :root {
    --page-pad: 28px;
    --section-pad: 64px;
  }

  .brand-logo {
    width: 68px;
  }

  .cards,
  .industries {
    grid-template-columns: 1fr;
  }

  .hero-actions .button {
    width: 100%;
  }

  .visual-placeholder {
    min-height: 350px;
  }

  .results-head {
    display: none;
  }

  .results-row {
    grid-template-columns: 1fr;
    padding: 14px 16px;
  }

  .results-row > div {
    padding: 4px 0;
  }

  .results-name {
    margin-bottom: 3px;
    color: #78cbea;
    font-size: 12px;
    font-weight: 700;
  }

  .results-confirmed {
    background: none;
  }

  .results-confirmed::before {
    content: "Подтверждено: ";
    color: #9fb1bb;
    font-weight: 500;
  }

  .results-target::before {
    content: "Цель: ";
    color: #9fb1bb;
    font-weight: 500;
  }

  .prototype-price {
    flex-direction: column;
    align-items: flex-start;
  }

  .price-values {
    flex-direction: column;
    gap: 10px;
    text-align: left;
  }

  .footer-inner {
    flex-direction: column;
  }
}
