*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: #111;
  background: #fff;
  font-family: "PT Serif", "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

a[href] {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible,
summary:focus-visible {
  outline: 2px solid #000;
  outline-offset: 3px;
}

::selection {
  background: #000;
  color: #fff;
}

/* ========== Layout ========== */
:root {
  --content-max: 72ch;
  --page-padding: clamp(16px, 4vw, 40px);
  --stack-1: 10px;
  --stack-2: 16px;
  --stack-3: 24px;
  --stack-4: 20px;
  --border: 1px solid #000;
}

header,
main,
footer {
  padding-inline: var(--page-padding);
}

main {
  padding-block: var(--stack-4);
}

header {
  padding-block: var(--stack-3);
}

footer {
  padding-block: var(--stack-4);
  border-top: var(--border);
}

main > section,
footer > nav,
footer > p {
  max-width: var(--content-max);
}


/* ========== Typography ========== */
h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
}

h1 {
  font-size: 52px;
  margin-bottom: var(--stack-2);
}

h2 {
  font-size: 36px;
  line-height: 1.3;
  margin-bottom: var(--stack-2);
}

h3 {
  font-size: 24px;
  line-height: 1.4;
  margin-bottom: var(--stack-1);
}

ul,
ol {
  margin-top: 1.5em;
  margin-bottom: 1.5em;
}

li {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

p {
  margin-top: 1.5em;
  margin-bottom: 1.5em;
}

h3 + p {
  margin-top: 0;
}

small {
  font-size: 0.9em;
  line-height: 1.45;
}

em {
  font-style: italic;
}

/* ========== Navigation ========== */
nav a {
  white-space: nowrap;
}

header nav > a {
  display: inline-block;
  font-weight: 700;
  text-decoration: none;
}

header nav > a[href] {
  text-decoration: none;
}

header nav > a[href]:hover {
  text-decoration: underline;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: var(--stack-2) 0 0;
  padding: 0;
  list-style: none;
}

nav li {
  margin: 0;
  padding: 0;
}

nav li a {
  text-decoration-thickness: 1px;
}

footer nav ul {
  margin-top: 0;
}

/* ========== Sections / Articles ========== */
main > section {
  margin-left: auto;
  margin-right: auto;
  padding-block: var(--stack-4);
}

main > section:first-child {
  padding-top: 0;
}

article {
  margin-top: var(--stack-3);
  padding-top: var(--stack-3);
  max-width: var(--content-max);
}

section[aria-labelledby="audience-title"] article:first-of-type {
  margin-top: var(--stack-2);
}

section[aria-labelledby="hero-title"] p:last-of-type {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
}


.differences ul {
  padding: 0;
  list-style: none;
}

/* ========== Details / FAQ ========== */

.faq {
  padding-bottom: calc(var(--stack-4) * 3);
}

details {
  max-width: var(--content-max);
  margin-top: var(--stack-2);
  padding-top: var(--stack-2);
}

details:first-of-type {
  margin-top: var(--stack-2);
}

summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  margin: 0;
}

summary::-webkit-details-marker {
  display: none;
}

/* Типографичная «стрелка» */
summary::before {
  content: "▸";
  display: inline-block;
  width: 1.2em;
  transform-origin: 0.6em 50%;
}

details[open] summary::before {
  content: "▾";
}

details > p {
  margin-top: var(--stack-2);
  margin-bottom: 0;
}

/* ========== Footer ========== */
footer > p {
  margin-top: var(--stack-3);
}


@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

.observers-list {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  margin: 2em 0;
  padding: 0;
  list-style: none;
}

.observers-list img {
  max-width: 200px;
  height: auto;
}

.participants {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.participants th,
.participants td {
  width: 33%;
}

.participants th:nth-child(1),
.participants td:nth-child(1) {
  width: 40%;
}

.participants th {
  padding: 0.75rem 0.75rem;
  font-weight: 700;
  text-align: left;
  border-bottom: 2px solid rgba(0, 0, 0, 0.12);
}

.participants td {
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.10);
}

.participants tr:last-child td {
  border-bottom: 0;
}

.participants .company-profile {
  font-size: 0.8em;
}

.participants .company-status {
  --status-position: 0%;

  display: block;
  text-align: center;
  max-width: 210px;
  padding: 0.25rem 0.55rem;
  padding-bottom: 0.35rem;
  font-size: 0.8em;
  line-height: 1.1;
  color: #666;
  white-space: nowrap;
  background-color: rgba(0, 0, 0, 0.16);
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.6) 0 var(--status-position), transparent var(--status-position));
  border-radius: 999px;
}

.participants .company-status[data-status="confirmed"] {
  --status-position: 100%;
}

.participants .company-status[data-status="pending"] {
  --status-position: 66%;
}

.participants .company-status[data-status="invited"] {
  --status-position: 33%;
}

.participants td:last-child {
  padding-top: 0.75rem;
}

@media (max-width: 640px) {
  .participants thead {
    display: none;
  }

  .participants,
  .participants tbody,
  .participants tr,
  .participants td {
    display: block;
    width: 100%;
  }

  .participants tbody tr {
    padding: 0.75rem;
    margin: 0 0 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.10);
    border-radius: 12px;
  }

  .participants tbody td {
    border: 0;
    padding: 0.35rem 0;
  }

  .participants tbody td:first-child {
    font-weight: 700;
    padding-top: 0;
  }

  .participants tbody td:last-child {
    padding-bottom: 0;
  }

  .participants td::before {
    content: "";
    display: block;
    font-weight: normal;
    color: #999;
    margin-bottom: 0.15rem;
  }

  .participants td:nth-child(1)::before {
    content: "Компания";
  }

  table.participants td:nth-child(2)::before {
    content: "Профиль";
  }

  table.participants td:nth-child(3)::before {
    content: "Статус";
  }
}