/* Сторінка проєкту головної сторінки платформи (ТЗ КАН §6.4, PNL-SITE-07) — у вигляді головної:
   ті самі шрифт, кольори, знак і кнопка з site.css (вантажиться першим); тут — розкладка сторінки
   на два-три екрани: вступ із рядком фактів, головний знімок, три можливості зі знімками, «Ще в
   системі», переваги, заклик і решта проєктів. Тема — за пристроєм; знімки екранів завжди
   світлі. */

/* Шапка, заголовок і кнопка — як на першій версії головної */
.top { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.site { font-size: 15px; line-height: 1.4; font-weight: 600; color: var(--muted); white-space: nowrap; }
h1 { margin: 0; max-width: 760px; font-size: 44px; line-height: 1.14; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
.lead { margin: 0; max-width: 600px; font-size: 19px; line-height: 1.5; font-weight: 400; color: var(--muted); }
.contact { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 16px; }
.works h2 { margin: 0 0 20px; font-size: 13px; line-height: 1.4; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
/* три числа оферу над закликом — звичайним регістром: великими літерами лише до трьох слів */
.note { margin: 0 0 14px; font-size: 16px; line-height: 1.45; font-weight: 600; color: var(--muted); }
.works ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px 28px; }
.works li { display: flex; flex-direction: column; gap: 12px; font-size: 17px; line-height: 1.4; font-weight: 600; }
.works li span { max-width: 250px; text-wrap: balance; }
.works svg { color: var(--accent); }
.works li a { display: flex; flex-direction: column; gap: 12px; color: inherit; text-decoration: none; border-radius: 8px; }
.works li a span::after { content: "\00A0→"; color: var(--accent); }
.works li a:hover span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.works li a:focus-visible { outline: 3px solid var(--ink); outline-offset: 6px; }

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 64px 56px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* Шапка й вступ */
.head { display: flex; flex-direction: column; gap: 28px; }
a.mark:focus-visible, a.site:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
a.site { text-decoration: none; }
a.site:hover { color: var(--ink); }
.intro { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.kicker,
.label {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.kicker { display: flex; align-items: center; gap: 12px; }
.kicker svg { flex: none; color: var(--accent); }
.intro .lead { max-width: 760px; }
.audience { margin: 0; max-width: 760px; font-size: 16px; line-height: 1.5; color: var(--muted); }
/* рядок фактів кейсу: масштаб, строк запуску, відколи працює */
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 15px; line-height: 1.45; font-weight: 600; }
.facts li + li::before { content: "·"; margin-right: 20px; color: var(--muted); }
.audience strong { font-weight: 600; color: var(--ink); }
.intro .cta { margin-top: 8px; }

/* Знімок екрана в рамці: зависокий показано згори, цілий — за натиском */
.shot { margin: 0; min-width: 0; }
.shot a {
  display: block;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #FFFFFF;
  box-shadow: 0 1px 2px rgba(20, 34, 42, 0.05), 0 16px 40px rgba(20, 34, 42, 0.09);
}
.shot a:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.shot img { display: block; width: 100%; height: auto; object-fit: cover; object-position: top left; }
.shot figcaption { margin-top: 12px; font-size: 14px; line-height: 1.45; color: var(--muted); }

/* Можливості: текст поруч зі знімком, сторони чергуються */
.features { display: flex; flex-direction: column; gap: 40px; }
.features .label { margin-bottom: -16px; }
.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 40px;
  align-items: center;
}
.feature:nth-of-type(even) .shot { order: -1; }
.feature-text { display: flex; flex-direction: column; gap: 12px; }
.feature h3 { margin: 0; font-size: 24px; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; }
.feature p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--muted); }
.points { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.points li { position: relative; padding-left: 28px; font-size: 15px; line-height: 1.45; }
.points li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 4px;
  width: 6px;
  height: 11px;
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* «Ще в системі» й переваги — під лінією, як «Вже працює» на головній */
.also,
.benefits { border-top: 1px solid var(--line); padding-top: 24px; }
.also .label,
.benefits .label { margin-bottom: 20px; }
.also ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 28px;
}
.also li { position: relative; padding-left: 20px; font-size: 16px; line-height: 1.45; }
.also li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
}
.benefits ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}
.benefits h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.3; font-weight: 700; text-wrap: balance; }
.benefits p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }

/* Заклик написати поруч із рештою проєктів; без бота звернень (`solo`) — лише проєкти, рядком */
.next {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 40px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.next.solo { grid-template-columns: minmax(0, 1fr); }
.ask h2 { margin: 0 0 12px; font-size: 30px; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
.ask .contact { margin-top: 20px; }
.next .works { border-top: 0; padding-top: 0; }
.next .works ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 28px; }
.next.solo .works ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1080px) {
  .also ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benefits ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .mark { width: 44px; height: 44px; }
  h1 { font-size: 30px; }
  .lead { font-size: 17px; }
  .contact { align-items: stretch; }
  .contact-note { text-align: center; }
  .works li { font-size: 16px; }
  .page { padding: 28px 20px 40px; gap: 40px; }
  .head { gap: 24px; }
  .intro .cta { align-self: stretch; }
  .shot a { border-radius: 10px; }
  .feature { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .feature:nth-of-type(even) .shot { order: 0; }
  .feature h3 { font-size: 22px; }
  .next { grid-template-columns: minmax(0, 1fr); }
  .ask h2 { font-size: 26px; }
  .next.solo .works ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .also ul { grid-template-columns: minmax(0, 1fr); }
  .benefits ul { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
