/* ==========================================================================
   Акрополь — сайт-визитка конфигурации 1С
   Античная основа: мрамор, греческий орнамент, индиго и орхидея.
   Палитра взята из логотипа проекта (#010137, #011170, #442369, #d2c2b5).
   ========================================================================== */

:root {
  /* Мрамор и камень */
  --marble: #f8f5ef;
  --marble-2: #f2ede2;
  --stone: #d7cebc;
  --stone-soft: #e4dccb;
  --line: #ddd4c2;
  --line-strong: #c7bba3;

  /* Чернила и текст */
  --ink: #121a33;
  --ink-2: #253052;
  --text: #474d61;
  --text-soft: #6d7286;

  /* Цвета бренда */
  --blue: #1b2a6b;
  --blue-deep: #0f1a45;
  --orchid: #5b2f7d;
  --orchid-soft: #8a76a8;
  --violet: #7f6df2;
  --violet-deep: #3f3ad8;

  --font-display: Georgia, "Palatino Linotype", "Book Antiqua", "Times New Roman", serif;
  --font-body: "Segoe UI", Tahoma, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Cascadia Mono", Consolas, "Courier New", monospace;

  --radius: 3px;
  --shadow-card: 0 1px 2px rgba(18, 26, 51, 0.04), 0 18px 36px -28px rgba(18, 26, 51, 0.35);
  --shadow-lift: 0 2px 4px rgba(18, 26, 51, 0.05), 0 28px 48px -30px rgba(18, 26, 51, 0.42);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 74px;

  /* Греческий орнамент «меандр» как фоновая полоса */
  --meander: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M3 25V7h16v12H9v-6h6' fill='none' stroke='%23c7bba3' stroke-width='2' stroke-linecap='square'/%3E%3C/svg%3E");
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--marble);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.72;
  overflow-x: hidden;
  position: relative;
}

/* Мраморная фактура: прожилки и мягкие световые пятна */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 70% 50% at 12% 4%, rgba(127, 109, 242, 0.08), transparent 60%),
    radial-gradient(ellipse 60% 45% at 92% 22%, rgba(91, 47, 125, 0.06), transparent 62%),
    radial-gradient(ellipse 90% 60% at 50% 100%, rgba(210, 194, 181, 0.28), transparent 70%),
    linear-gradient(180deg, #faf8f3, var(--marble) 42%, #f5f1e8);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    repeating-linear-gradient(64deg, rgba(18, 26, 51, 0.022) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(-28deg, rgba(18, 26, 51, 0.016) 0 1px, transparent 1px 34px);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

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

p {
  margin: 0 0 1.1em;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.18;
  margin: 0 0 0.6em;
  letter-spacing: 0.005em;
}

h2 {
  font-size: clamp(1.72rem, 3.3vw, 2.52rem);
}

h3 {
  font-size: 1.22rem;
  color: var(--blue);
}

h4 {
  font-size: 0.78rem;
  font-family: var(--font-body);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-soft);
}

strong {
  color: var(--ink);
  font-weight: 600;
}

ul,
ol {
  margin: 0 0 1.1em;
  padding-left: 1.2em;
}

li {
  margin-bottom: 0.45em;
}

li::marker {
  color: var(--orchid-soft);
}

code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  color: var(--blue);
  background: rgba(27, 42, 107, 0.06);
  border: 1px solid rgba(27, 42, 107, 0.12);
  border-radius: 3px;
  padding: 0.1em 0.38em;
}

/* --------------------------------------------------------------- Разметка */

.container {
  width: min(1140px, 92vw);
  margin-inline: auto;
}

.container--narrow {
  width: min(820px, 92vw);
}

.section {
  padding: clamp(3.4rem, 8vw, 6.5rem) 0;
  position: relative;
}

.section--tinted {
  background: linear-gradient(180deg, var(--marble-2), rgba(248, 245, 239, 0.6));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section--dark {
  background:
    radial-gradient(ellipse 80% 120% at 15% 0%, rgba(127, 109, 242, 0.28), transparent 60%),
    linear-gradient(145deg, var(--blue-deep), #1a1450 60%, #221a5e);
  color: rgba(245, 242, 235, 0.82);
}

.section--dark h2,
.section--dark h3,
.section--dark strong {
  color: #fdfbf6;
}

.section--dark .eyebrow {
  color: var(--violet);
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--orchid);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.section-head--center .eyebrow {
  justify-content: center;
}

.eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--orchid-soft));
}

.eyebrow::after {
  content: "";
  width: 30px;
  height: 1px;
  background: linear-gradient(90deg, var(--orchid-soft), transparent);
}

.section--dark .eyebrow::before,
.section--dark .eyebrow::after {
  background: linear-gradient(90deg, transparent, var(--violet), transparent);
}

.lead {
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  color: var(--text-soft);
}

.section--dark .lead {
  color: rgba(245, 242, 235, 0.72);
}

.muted {
  color: var(--text-soft);
  font-size: 0.92rem;
}

/* --------------------------------------------------------- Орнамент меандр */

.frieze {
  height: 20px;
  background-image: var(--meander);
  background-repeat: repeat-x;
  background-size: 20px 20px;
  opacity: 0.55;
  margin: 0;
}

.frieze--orchid {
  filter: none;
  opacity: 0.75;
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  margin: clamp(2rem, 5vw, 3.2rem) auto;
  color: var(--orchid-soft);
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  width: min(200px, 26vw);
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.divider span {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.3em;
  color: var(--orchid-soft);
}

/* ---------------------------------------------------------------- Шапка */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(248, 245, 239, 0.82);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(250, 248, 243, 0.96);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -26px rgba(18, 26, 51, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
}

.brand:hover {
  color: var(--blue);
}

.brand-mark {
  width: auto;
  height: 40px;
  flex: 0 0 auto;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.16rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  line-height: 1;
}

.brand-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.56rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-top: 0.34rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.7rem, 2vw, 1.9rem);
}

.site-nav a {
  color: var(--text);
  font-size: 0.83rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ink);
  border-bottom-color: var(--orchid);
}

.site-nav .nav-cta {
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  padding: 0.52rem 1.05rem;
  color: var(--blue);
  text-transform: uppercase;
}

.site-nav .nav-cta:hover {
  background: var(--blue);
  color: var(--marble);
  border-color: var(--blue);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 38px;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--ink-2);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ---------------------------------------------------------------- Кнопки */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.82rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid var(--blue);
  color: var(--blue);
  background: transparent;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.btn:hover {
  background: var(--blue);
  color: var(--marble);
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 16px 28px -20px rgba(27, 42, 107, 0.8);
}

.btn--primary {
  background: linear-gradient(160deg, var(--blue), var(--blue-deep));
  border-color: var(--blue-deep);
  color: #fbf9f3;
}

.btn--primary:hover {
  background: linear-gradient(160deg, #23357f, #14205a);
  border-color: #14205a;
  box-shadow: 0 18px 30px -20px rgba(18, 26, 51, 0.8);
}

.btn--violet {
  background: linear-gradient(150deg, var(--violet), var(--violet-deep));
  border-color: var(--violet-deep);
  color: #fff;
}

.btn--violet:hover {
  background: linear-gradient(150deg, #8f80f6, #4a44e2);
  border-color: #4a44e2;
  box-shadow: 0 18px 34px -18px rgba(63, 58, 216, 0.85);
}

.btn--ghost-light {
  border-color: rgba(253, 251, 246, 0.45);
  color: #fdfbf6;
}

.btn--ghost-light:hover {
  background: #fdfbf6;
  color: var(--blue-deep);
  border-color: #fdfbf6;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* ------------------------------------------------------------------ Герой */

.hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(2.6rem, 7vw, 5rem)) 0 clamp(2.8rem, 7vw, 4.6rem);
  text-align: center;
  overflow: hidden;
}

/* Колоннада по краям: тонкие вертикальные линии с капителями */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  top: 18%;
  bottom: 12%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--line-strong) 12%, var(--line-strong) 88%, transparent);
  opacity: 0.8;
  pointer-events: none;
}

.hero::before {
  left: 6%;
}

.hero::after {
  right: 6%;
}

/* Световое пятно за медальоном */
.hero-glow {
  position: absolute;
  top: 4%;
  left: 50%;
  width: min(760px, 120vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(127, 109, 242, 0.14), rgba(91, 47, 125, 0.06) 46%, transparent 66%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Медальон с логотипом — как античная монета */
.medallion {
  position: relative;
  width: clamp(148px, 20vw, 196px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 26%, #ffffff, #f3efe6 62%, #e7dfd0);
  border: 1px solid var(--stone);
  box-shadow:
    inset 0 0 0 6px rgba(255, 255, 255, 0.85),
    inset 0 0 0 7px var(--stone-soft),
    0 22px 44px -26px rgba(18, 26, 51, 0.55);
  margin-bottom: clamp(1.4rem, 3vw, 2rem);
}

.medallion::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(199, 187, 163, 0.55);
  pointer-events: none;
}

.medallion img {
  width: 62%;
  height: auto;
}

.hero-title {
  font-size: clamp(2.9rem, 10vw, 5.6rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 0.28em 0.2em;
  color: var(--ink);
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.3vw, 1.52rem);
  font-style: italic;
  color: var(--orchid);
  margin: 0 auto 1.4rem;
  max-width: 32ch;
}

.hero-lead {
  max-width: 64ch;
  margin: 0 auto 2.2rem;
  font-size: clamp(0.98rem, 1.4vw, 1.1rem);
  color: var(--text);
}

.hero-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem 1.5rem;
  padding: 0;
  margin: 2.6rem 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.hero-facts li {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.hero-facts li:not(:last-child)::after {
  content: "";
  width: 4px;
  height: 4px;
  transform: rotate(45deg);
  background: var(--orchid-soft);
  opacity: 0.7;
}

/* ------------------------------------------------ Заголовок внутренней страницы */

.page-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(2.2rem, 5.5vw, 3.6rem)) 0 clamp(2rem, 4.5vw, 3rem);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(127, 109, 242, 0.08), transparent 76%);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -46%;
  right: -8%;
  width: min(540px, 78vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 47, 125, 0.1), transparent 64%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
}

.page-hero h1 {
  font-size: clamp(2rem, 5.2vw, 3.2rem);
  letter-spacing: 0.06em;
  margin-bottom: 0.55em;
}

.page-hero .lead {
  max-width: 70ch;
  margin-bottom: 0;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.breadcrumbs a {
  color: var(--text);
}

.breadcrumbs a:hover {
  color: var(--orchid);
}

.breadcrumbs span[aria-hidden="true"] {
  color: var(--orchid-soft);
}

/* --------------------------------------------------------------- Карточки */

.grid {
  display: grid;
  gap: clamp(1rem, 2.2vw, 1.5rem);
}

/* Дочерние элементы сеток не должны раздуваться содержимым:
   широкие таблицы прокручиваются внутри .table-wrap. */
.grid > *,
.split > * {
  min-width: 0;
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(206px, 1fr));
}

.grid--5 {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.card {
  position: relative;
  padding: clamp(1.3rem, 2.6vw, 2rem);
  background: linear-gradient(168deg, #fffdf9, #faf6ee);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

/* Античные уголки */
.card::before,
.card::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  border-color: var(--stone);
  border-style: solid;
  opacity: 0.9;
  pointer-events: none;
  transition: opacity 0.35s var(--ease), border-color 0.35s var(--ease);
}

.card::before {
  top: 7px;
  left: 7px;
  border-width: 1px 0 0 1px;
}

.card::after {
  right: 7px;
  bottom: 7px;
  border-width: 0 1px 1px 0;
}

.card:hover {
  border-color: var(--stone);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.card:hover::before,
.card:hover::after {
  border-color: var(--orchid-soft);
  opacity: 1;
}

.card h3 {
  margin-top: 0;
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 0.95rem;
  border: 1px solid var(--stone);
  border-radius: 50%;
  color: var(--orchid);
  font-family: var(--font-display);
  font-size: 1.06rem;
  letter-spacing: 0;
  background: radial-gradient(circle at 36% 30%, #ffffff, #f4efe4);
}

/* Римская нумерация в углу карточки */
.card-index {
  position: absolute;
  top: 1rem;
  right: 1.15rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  color: var(--stone);
  pointer-events: none;
}

.card ul {
  padding-left: 1.05em;
  font-size: 0.95rem;
}

.card ul li::marker {
  color: var(--orchid-soft);
}

/* ----------------------------------------------------- Детальные страницы */

/* Пока ни одна деталь не открыта — показываем сетку.
   При открытии детали скрываем сетку и заголовок секции. */
.detail-page { display: none; }
.detail-page:target { display: block; }

#tasks:has(.detail-page:target) #taskList {
  display: none;
}

#architecture:has(.detail-page:target) #archList {
  display: none;
}

#people:has(.detail-page:target) #peopleList {
  display: none;
}

/* Ссылка-оверлей на карточку — вся площадь кликабельная */
.card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.card-link ~ h3 a {
  position: relative;
  z-index: 2;
  color: inherit;
}

.card-link ~ h3 a:hover {
  color: var(--orchid);
}

.card-more {
  position: relative;
  z-index: 2;
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orchid);
  text-decoration: none;
}

.card-more::after {
  content: " →";
  transition: margin-left 0.25s var(--ease);
}

.card:hover .card-more::after {
  margin-left: 0.3rem;
}

/* Заголовки-ссылки карточек: переход в раздел Возможностей с главной */
.card h3 a {
  color: inherit;
  text-decoration: none;
}

.card h3 a:hover {
  color: var(--orchid);
}

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: opacity 0.3s var(--ease);
}

.detail-back::before {
  content: "←";
  color: var(--orchid);
  font-size: 1em;
  line-height: 1;
}

.detail-card {
  padding: clamp(1.5rem, 3vw, 2.2rem);
  background: linear-gradient(168deg, #fffdf9, #faf6ee);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.detail-card h3 {
  margin-top: 0;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  color: var(--ink);
}

.detail-card p {
  text-align: justify;
}

.detail-meta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
  padding: 0;
  margin: 1.2rem 0 1.8rem;
  list-style: none;
}

.detail-meta li {
  margin: 0;
  padding: 0.25rem 0.7rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.8);
}

.detail-shot {
  margin-top: 1.6rem;
  max-width: 700px;
}

.detail-shot img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  background: #fff;
}

.detail-shot figcaption {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-top: 0.5rem;
}

/* --------------------------------------------------------------- Таблицы */

.table-wrap {
  overflow-x: auto;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 249, 0.75);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  min-width: 520px;
}

caption {
  caption-side: top;
  text-align: left;
  padding: 0.9rem 1.1rem 0.2rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orchid);
}

th,
td {
  padding: 0.72rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

thead th {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  background: rgba(27, 42, 107, 0.045);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:hover {
  background: rgba(127, 109, 242, 0.05);
}

td:first-child {
  color: var(--ink-2);
  width: 40%;
}

/* Таблица внутри карточки: без рамки, с пунктирными разделителями */
.table-plain {
  border: none;
  background: none;
}

.table-plain table {
  min-width: 0;
  font-size: 0.9rem;
}

.table-plain th,
.table-plain td {
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--line);
}

.table-plain td:first-child {
  width: 44%;
  color: var(--text-soft);
  font-size: 0.84rem;
  letter-spacing: 0.04em;
}

.table-plain tbody tr:hover {
  background: none;
}

/* ------------------------------------------------------- Список с маркерами */

.tick-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tick-list li {
  position: relative;
  padding-left: 1.55rem;
  margin-bottom: 0.7rem;
}

.tick-list li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border: 1px solid var(--orchid-soft);
  transform: rotate(45deg);
}

/* ------------------------------------------------------- Сетка утилит */

.tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  list-style: none;
  padding: 0;
  margin: 0;
}

.tools li {
  margin: 0;
  padding: 1rem 1.15rem;
  background: linear-gradient(180deg, #fffdf9, #f8f4ea);
  font-size: 0.94rem;
  color: var(--ink-2);
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.tools li::before {
  content: "·";
  color: var(--orchid-soft);
  font-size: 1.4em;
  line-height: 0;
}

/* ------------------------------------------------------------ Цитата/врезка */

.callout {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.1rem) clamp(1.5rem, 3vw, 2.2rem);
  border-left: 2px solid var(--orchid-soft);
  background: linear-gradient(90deg, rgba(127, 109, 242, 0.09), transparent 72%);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
  color: var(--ink);
  font-style: italic;
}

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

.callout cite {
  display: block;
  margin-top: 0.9rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
}

/* ------------------------------------------------------------- Две колонки */

.split {
  display: grid;
  gap: clamp(1.6rem, 4vw, 3.2rem);
  align-items: start;
}

@media (min-width: 880px) {
  .split--aside {
    grid-template-columns: minmax(0, 1.32fr) minmax(280px, 0.82fr);
  }

  .split--visual {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center;
  }
}

/* Первая буква-буквица */
.dropcap::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 3.4em;
  line-height: 0.8;
  padding: 0.08em 0.16em 0 0;
  color: var(--orchid);
}

/* ------------------------------------------------------------- Шаги */

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.steps li {
  counter-increment: step;
  position: relative;
  margin: 0;
  padding: 1.4rem 1.5rem 1.4rem 4.4rem;
  background: linear-gradient(180deg, #fffdf9, #f8f4ea);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1.35rem;
  top: 1.2rem;
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--stone);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--orchid);
  background: #fffdf9;
}

.steps li strong {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 400;
  color: var(--ink);
}

.steps li span {
  font-size: 0.94rem;
  color: var(--text-soft);
}

/* ---------------------------------------------------------- Бейджи/метки */

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.tag-row li {
  margin: 0;
  padding: 0.3rem 0.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.8);
}

.tag--orchid {
  border-color: rgba(91, 47, 125, 0.38) !important;
  color: var(--orchid) !important;
}

.tag--blue {
  border-color: rgba(27, 42, 107, 0.35) !important;
  color: var(--blue) !important;
}

/* ------------------------------------------------------------ Форма контактов */

.contact-form {
  display: grid;
  gap: 1rem;
  padding: clamp(1.3rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(168deg, #fffdf9, #f9f5ec);
  box-shadow: var(--shadow-card);
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.field textarea {
  resize: vertical;
  min-height: 124px;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--orchid-soft);
  box-shadow: 0 0 0 3px rgba(127, 109, 242, 0.16);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #a9a290;
}

.form-note {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-soft);
  min-height: 1.2em;
}

.form-note.is-error {
  color: #a8382f;
}

.form-note.is-ok {
  color: #2f6a4a;
}

/* ------------------------------------------------------------------ FAQ */

.faq {
  display: grid;
  gap: 0.7rem;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 249, 0.82);
  padding: 0 1.2rem;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.faq details[open] {
  border-color: var(--stone);
  background: #fffdf9;
}

.faq summary {
  cursor: pointer;
  padding: 1.05rem 0;
  font-family: var(--font-display);
  font-size: 1.04rem;
  color: var(--ink);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.faq summary::after {
  content: "+";
  font-family: var(--font-body);
  color: var(--orchid);
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 0.3s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  margin: 0 0 1.1rem;
  font-size: 0.95rem;
}

/* ---------------------------------------------------- Оглавление страницы */

.toc {
  padding: clamp(1.2rem, 2.5vw, 1.8rem) 0 clamp(0.5rem, 1.2vw, 1.2rem);
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.6rem;
}

.toc-list li {
  margin: 0;
}

.toc-list a {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  border: 1px solid var(--stone);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.75);
  transition: color 0.25s var(--ease), background 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.toc-list a:hover {
  color: #fdfbf6;
  background: var(--blue);
  border-color: var(--blue);
}

/* ----------------------------------------------------- Баннерная карточка */

.banner-frame {
  position: relative;
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}

.banner-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* ------------------------------------------------- Галерея экранов */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(1.3rem, 2.8vw, 2.1rem);
}

.shot {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.shot-link {
  position: relative;
  display: block;
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.shot-link img {
  width: 100%;
  height: auto;
  display: block;
}

.shot-link:hover {
  transform: translateY(-3px);
  border-color: var(--orchid-soft);
  box-shadow: var(--shadow-lift);
}

/* Знак увеличения в углу кадра */
.shot-link::after {
  content: "+";
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1;
  color: var(--ink);
  background: rgba(255, 253, 249, 0.88);
  border: 1px solid var(--stone);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  pointer-events: none;
}

.shot-link:hover::after,
.shot-link:focus-visible::after {
  opacity: 1;
  transform: none;
}

.shot figcaption {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.shot-num {
  color: var(--orchid);
  margin-right: 0.6rem;
}

/* Широкий одиночный экран внутри текстовой секции */
.shot--wide {
  max-width: 900px;
  margin: clamp(2rem, 4vw, 3rem) auto 0;
}

.section--dark .shot figcaption {
  color: rgba(245, 242, 235, 0.62);
}

.section--dark .shot-num {
  color: var(--violet);
}

/* ------------------------------------------------ Просмотр скриншота */

.lightbox {
  border: none;
  padding: 0;
  margin: auto;
  max-width: 96vw;
  max-height: 94vh;
  background: transparent;
  overflow: visible;
}

.lightbox::backdrop {
  background: rgba(14, 18, 40, 0.9);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.lightbox img {
  display: block;
  width: auto;
  max-width: 94vw;
  max-height: 86vh;
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}

.lightbox-caption {
  margin: 0.9rem 0 0;
  text-align: center;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 242, 235, 0.7);
}

.lightbox-close {
  position: fixed;
  top: 1.1rem;
  right: 1.1rem;
  margin: 0;
}

.lightbox-close button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  line-height: 1;
  color: #fdfbf6;
  background: rgba(18, 26, 51, 0.55);
  border: 1px solid rgba(253, 251, 246, 0.35);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.lightbox-close button:hover {
  background: rgba(18, 26, 51, 0.85);
  transform: rotate(90deg);
}

/* ---------------------------------------------------------------- Подвал */

.site-footer {
  border-top: 1px solid rgba(253, 251, 246, 0.14);
  background:
    radial-gradient(ellipse 70% 120% at 20% 0%, rgba(127, 109, 242, 0.22), transparent 60%),
    linear-gradient(160deg, #10173c, #14123a 58%, #191543);
  color: rgba(245, 242, 235, 0.7);
  padding: clamp(2.6rem, 5vw, 3.8rem) 0 1.6rem;
  font-size: 0.92rem;
}

.site-footer a {
  color: rgba(245, 242, 235, 0.78);
}

.site-footer a:hover {
  color: #fff;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 2.2rem;
}

.footer-brand .brand-name {
  color: #fdfbf6;
}

.footer-brand .brand-sub {
  color: rgba(245, 242, 235, 0.55);
}

.footer-brand p {
  color: rgba(245, 242, 235, 0.62);
  margin: 1rem 0 0;
  max-width: 34ch;
}

.footer-col h4 {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: var(--violet);
  margin-bottom: 0.9rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(253, 251, 246, 0.14);
  padding-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  justify-content: space-between;
  color: rgba(245, 242, 235, 0.5);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

/* -------------------------------------------------------- Анимация появления */

/* По умолчанию блоки видны: без JS страница остаётся читаемой.
   Скрытие включает скрипт, добавляя класс js на <html>. */
.reveal {
  opacity: 1;
  transform: none;
}

html.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  will-change: opacity, transform;
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal[data-delay="1"] {
  transition-delay: 0.09s;
}

.reveal[data-delay="2"] {
  transition-delay: 0.18s;
}

.reveal[data-delay="3"] {
  transition-delay: 0.27s;
}

.reveal[data-delay="4"] {
  transition-delay: 0.36s;
}

/* --------------------------------------------------------------- Адаптив */

@media (max-width: 860px) {
  body {
    font-size: 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.6rem 4vw 1.4rem;
    background: rgba(250, 248, 243, 0.99);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -30px rgba(18, 26, 51, 0.5);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease),
      visibility 0.25s var(--ease);
  }

  .site-nav.is-open {
    opacity: 1;
    transform: none;
    visibility: visible;
  }

  .site-nav a {
    padding: 0.95rem 0.2rem;
    border-bottom: 1px solid var(--line);
    font-size: 0.92rem;
  }

  .site-nav .nav-cta {
    margin-top: 0.9rem;
    text-align: center;
    border-bottom: 1px solid var(--blue);
  }

  .hero::before,
  .hero::after {
    display: none;
  }

  .hero-title {
    letter-spacing: 0.14em;
    margin-left: 0.14em;
  }

  .hero-facts {
    flex-direction: column;
    gap: 0.4rem;
  }

  .hero-facts li:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 520px) {
  .btn {
    width: 100%;
    padding: 0.85rem 1rem;
  }

  .btn-row {
    flex-direction: column;
    width: 100%;
  }

  .card {
    padding: 1.2rem;
  }

  .steps li {
    padding: 1.2rem 1.1rem 1.2rem 3.6rem;
  }

  .steps li::before {
    left: 1rem;
    top: 1.05rem;
    width: 1.85rem;
    height: 1.85rem;
    font-size: 0.9rem;
  }

  .brand-name {
    font-size: 1rem;
    letter-spacing: 0.2em;
  }

  .brand-sub {
    display: none;
  }
}

/* Уважение к настройкам системы */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  html.js .reveal,
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* Печать */
@media print {
  body::before,
  body::after,
  .site-header,
  .site-nav,
  .nav-toggle,
  .frieze {
    display: none;
  }

  body {
    background: #fff;
    color: #111;
  }

  h1,
  h2,
  h3,
  strong,
  td:first-child {
    color: #000;
  }

  html.js .reveal,
  .reveal {
    opacity: 1;
    transform: none;
  }

  .card,
  .steps li,
  .tools li {
    background: none;
    border-color: #bbb;
  }
}
