
/* =========================================
   PROJECT — HERO
   ========================================= */

.project-hero {
  padding: 34px 0 24px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 68% 40%, rgba(0, 92, 112, .16), transparent 55%),
    var(--bg);
}

.project-hero-main {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 30px;
}

.project-hero-content {
  min-width: 0;
}

.project-eyebrow {
  margin: 0 0 10px;
  color: var(--cyan);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.project-hero-content h1 {
  margin: 0 0 18px;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -.035em;
  color: var(--text);
}

.project-hero-content h1 span {
  color: var(--blue);
}

.project-hero-content > p:not(.project-eyebrow) {
  max-width: 650px;
  margin: 0 0 10px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
}

.project-hero-art {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-hero-art svg {
  display: block;
  width: 110%;
  max-width: 570px;
  height: auto;
  overflow: visible;
}

/* Information cards */

.project-hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 18px;
}

.project-fact {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: start;
  gap: 15px;
  min-height: 90px;
  padding: 12px 18px;
  border: 1px solid var(--cyan);
  border-radius: 12px;
  background: rgba(0, 24, 30, .6);
}

.project-fact svg {
  width: 42px;
  height: 42px;
  stroke: var(--cyan);
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.project-fact h2 {
  margin: 0 0 3px;
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

.project-fact p {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  color: var(--text);
}

/* Tablet */

@media (max-width: 1100px) {
  .project-hero-main {
    grid-template-columns: 1.1fr 1fr;
    gap: 15px;
  }

  .project-hero-content h1 {
    font-size: clamp(27px, 3.2vw, 36px);
  }

  .project-hero-facts {
    gap: 16px;
  }

  .project-fact {
    padding: 12px;
    gap: 10px;
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .project-fact svg {
    width: 36px;
    height: 36px;
  }
}

/* Mobile */

@media (max-width: 700px) {
  .project-hero {
    padding: 35px 0;
  }

  .project-hero-main {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .project-hero-content h1 {
    font-size: clamp(27px, 6vw, 37px);
  }

  .project-hero-art svg {
    width: 100%;
    max-width: 460px;
  }

  .project-hero-facts {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 10px;
  }

  .project-fact {
    grid-template-columns: 45px minmax(0, 1fr);
    min-height: auto;
    padding: 15px;
  }

  .project-fact svg {
    width: 38px;
    height: 38px;
  }
}


/* =========================================
   PROJECT — OPERATIONAL CONTEXT
   ========================================= */

.project-context {
  padding: 60px 0;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 50% 50%, rgba(0, 80, 96, .09), transparent 75%),
    var(--bg);
}

.project-context-inner {
  display: grid;
  grid-template-columns: 42% minmax(0, 1fr);
  gap: 36px;
  align-items: stretch;
}

.project-context-heading {
  min-width: 0;
}

.project-context-heading .project-eyebrow {
  margin-bottom: 5px;
}

.project-context-heading h2 {
  margin: 0;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.3;
}

.project-context-content {
  min-width: 0;
  padding-left: 36px;
  border-left: 1px solid var(--cyan);
}

.project-context-content p {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.35;
}

.project-context-content p:last-child {
  margin-bottom: 0;
}

/* Tablet */

@media (max-width: 1100px) {
  .project-context-inner {
    grid-template-columns: 40% minmax(0, 1fr);
    gap: 24px;
  }

  .project-context-content {
    padding-left: 24px;
  }

  .project-context-heading h2 {
    font-size: 24px;
  }
}

/* Mobile */

@media (max-width: 700px) {
  .project-context {
    padding: 35px 0;
  }

  .project-context-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-context-heading h2 {
    font-size: 23px;
  }

  .project-context-content {
    padding-left: 18px;
  }

  .project-context-content p {
    line-height: 1.55;
  }
}


/* =========================================
   PROJECT — ARCHITECTURE OVERVIEW
   ========================================= */

.project-architecture {
  padding: 60px 0;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 50% 45%, rgba(0, 85, 102, .1), transparent 75%),
    var(--bg);
}

.project-architecture-heading {
  margin-bottom: 22px;
}

.project-architecture-heading .project-eyebrow {
  margin-bottom: 5px;
}

.project-architecture-heading h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

.project-architecture-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(260px, 1fr);
  gap: 36px;
}

/* Flow chart */


.project-flow-sources {
  position: relative;
  width: 55%;
  min-height: 88px;
  border: 1px solid var(--cyan);
  border-radius: 13px;
  text-align: center;
  padding: 7px 15px;
}

.project-flow-sources h3 {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
}

.project-flow-source-icons {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.project-flow-source-icons > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--cyan);
}

.project-flow-source-icons svg {
  width: 34px;
  height: 34px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.project-flow-source-icons span {
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.project-flow-step {
  display: grid;
  grid-template-columns: 55% minmax(0, 1fr);
  gap: 65px;
  align-items: center;
}

.project-flow-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 47px;
  padding: 5px 18px 5px 55px;
  border: 1px solid var(--cyan);
  border-radius: 12px;
}

.project-flow-box::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 2px;
  height: 10px;
  background: var(--cyan);
  transform: translateX(-50%);
}

.project-flow-box::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid var(--cyan);
  transform: translateX(-50%);
}

.project-flow-box svg {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  stroke: var(--cyan);
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.project-flow-box h3 {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.project-flow-step > p {
  position: relative;
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.25;
}

/* Расстояние между этапами */
.project-flow {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-left: 30px;
}

/* Вертикальная линия */
.project-flow-box::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -29px;
  width: 2px;
  height: 19px;
  background: var(--cyan);
  transform: translateX(-50%);
}

/* Наконечник стрелки вниз */
.project-flow-box::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -12px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 8px solid var(--cyan);
  transform: translateX(-50%);
}

/* Горизонтальная пунктирная линия */
.project-flow-step > p::before {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(100% + 12px);
  width: 53px;
  border-top: 1px dashed rgba(0, 230, 236, .8);
  transform: translateY(-50%);
}

/* Точка в конце линии */
.project-flow-step > p::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -17px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1685a4;
  transform: translateY(-50%);
}
/* Right column */

.project-architecture-aside {
  min-width: 0;
  padding-left: 35px;
  border-left: 1px solid var(--cyan);
}

.project-architecture-art {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 35px;
}

.project-architecture-quote {
  margin: 0;
  padding: 5px 0 5px 20px;
  border-left: 3px solid var(--cyan);
  color: var(--text);
  font-size: 15px;
  font-style: italic;
  line-height: 1.55;
}

/* Tablet */

@media (max-width: 1100px) {
  .project-architecture-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(220px, 1fr);
    gap: 24px;
  }

  .project-flow {
    padding-left: 0;
  }

  .project-flow-step {
    grid-template-columns: 55% minmax(0, 1fr);
    gap: 30px;
  }

  .project-flow-box {
    gap: 12px;
    padding-left: 15px;
  }

  .project-flow-step > p::before {
    right: calc(100% + 5px);
    width: 22px;
  }

  .project-architecture-aside {
    padding-left: 24px;
  }
}

/* Mobile */

@media (max-width: 700px) {
  .project-architecture-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .project-architecture-heading h2 {
    font-size: 24px;
  }

  .project-flow {
    gap: 14px;
  }

  .project-flow-sources {
    width: 100%;
  }

  .project-flow-step {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .project-flow-box {
    min-height: 52px;
    padding: 8px 15px;
  }

  .project-flow-step > p {
    padding: 0 10px 0 15px;
    font-size: 14px;
    line-height: 1.5;
  }

  .project-flow-step > p::before {
    display: none;
  }

  .project-architecture-aside {
    padding-left: 0;
    border-left: 0;
  }

  .project-architecture-art {
    max-width: 350px;
    margin: 0 auto 25px;
  }
}


/* =========================================
   PROJECT — SHARED SECTION STYLES
   ========================================= */

.project-design-choices,
.project-ai-workflow,
.project-implementation,
.project-confidentiality {
  padding: 60px 0;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(
      ellipse at 55% 45%,
      rgba(0, 90, 108, .12),
      transparent 75%
    ),
    var(--bg);
}

.project-section-heading {
  margin-bottom: 25px;
}

.project-section-heading .project-eyebrow {
  margin-bottom: 5px;
}

.project-section-heading h2 {
  margin: 0;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
}

/* =========================================
   PROJECT — SHARED CARDS
   ========================================= */

.project-info-card {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  min-width: 0;
  padding: 20px 24px;
  border: 1px solid var(--cyan);
  border-radius: 13px;
  background: rgba(0, 28, 35, .45);
}

.project-info-icon {
  width: 48px;
  height: 48px;
  color: var(--cyan);
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.project-info-card h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

.project-info-card p {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
}

/* =========================================
   PROJECT — KEY DESIGN CHOICES
   ========================================= */

.project-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

/* =========================================
   PROJECT — AI WORKFLOW
   ========================================= */

.project-ai-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}

.project-ai-grid .project-info-card {
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 18px 15px;
}

.project-ai-grid .project-info-icon {
  width: 38px;
  height: 38px;
}

.project-ai-grid .project-info-card h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

.project-ai-grid .project-info-card p {
  font-size: 14px;
  line-height: 1.45;
}

/* =========================================
   PROJECT — IMPLEMENTATION
   ========================================= */

.project-implementation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.project-implementation .project-info-card {
  align-items: center;
  min-height: 105px;
}

/* =========================================
   PROJECT — CONFIDENTIALITY
   ========================================= */

.project-confidentiality .project-section-heading {
  margin-bottom: 12px;
}

.project-confidentiality > .container > p {
  max-width: 1100px;
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 1100px) {
  .project-ai-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .project-ai-grid .project-info-card {
    grid-template-columns: 50px minmax(0, 1fr);
    padding: 20px;
  }

  .project-ai-grid .project-info-icon {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 700px) {
  .project-design-choices,
  .project-ai-workflow,
  .project-implementation,
  .project-confidentiality {
    padding: 45px 0;
  }

  .project-section-heading h2 {
    font-size: 24px;
  }

  .project-choice-grid,
  .project-ai-grid,
  .project-implementation-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .project-info-card,
  .project-ai-grid .project-info-card {
    grid-template-columns: 45px minmax(0, 1fr);
    gap: 15px;
    padding: 18px;
  }

  .project-info-icon,
  .project-ai-grid .project-info-icon {
    width: 40px;
    height: 40px;
  }

  .project-info-card h3,
  .project-ai-grid .project-info-card h3 {
    font-size: 16px;
  }

  .project-info-card p,
  .project-ai-grid .project-info-card p {
    font-size: 15px;
  }
}


/* CMS — Key Design Choices */

.cms-design-choices .project-info-card p + p {
  margin-top: 10px;
}

.cms-design-choices .project-info-card:last-child {
  grid-column: 1 / -1;
}

@media (max-width: 700px) {
  .cms-design-choices .project-info-card:last-child {
    grid-column: auto;
  }
}
#long-term-use > .container > p + p {
  margin-top: 12px;
}

/* CMS — Evolution */

#evolution .project-flow {
  gap: 32px;
}

/* Карточка служит точкой отсчёта для стрелки */
#evolution .project-flow-box {
  position: relative;
}

/* У первой карточки стрелки сверху нет */
#evolution .project-flow-step:first-child .project-flow-box::before,
#evolution .project-flow-step:first-child .project-flow-box::after {
  display: none;
}

/* Вертикальная линия между карточками */
#evolution .project-flow-step:not(:first-child) .project-flow-box::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -29px;
  width: 2px;
  height: 19px;
  background: var(--cyan);
  transform: translateX(-50%);
}

/* Наконечник стрелки */
#evolution .project-flow-step:not(:first-child) .project-flow-box::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -10px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid var(--cyan);
  transform: translateX(-50%);
}
