:root {
  --main-color: #163145;
  --main-white: #f2f8ff;
}


html {
  scrollbar-width: thin;
  scrollbar-color: #ffffff #000000;
}

html::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

html::-webkit-scrollbar-track {
  background: transparent;
}

html::-webkit-scrollbar-thumb {
  background-color: #ffffff;
  border-radius: 4px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

ul, ol {
  list-style: none;
}

a {
  color: black;
  text-decoration: none;
}

b {
  color: black;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-size: inherit;
  font-weight: normal;
 }


.menu {
  font: 20px "Montserrat", sans-serif;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 45px;
  padding: 0 14px;
  background: #000000;
  /* Ширина была прибита к 600px под фиксированный набор пунктов.
     «Войти» уехало в правый угол, поэтому считаем по содержимому. */
  width: auto;
  max-width: min(640px, calc(100vw - 340px));
  border-radius: 100px;
  position: fixed;
  top: 10px;
  z-index: 1000;
  left: 50%;
  transform: translateX(-50%);
}

.menu__icon {
  object-fit: cover;
  width: 51px;
  height: 51px;
  margin: 0;
  position: fixed;
  top: 7px;
  left: 35px;
  background: #000000;
  border-radius: 50px;
  z-index: 1000;
}

.menu__list__flex {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 20px;
  color: #ffffff;
}

.menu__list__active {
  height: 45px;
  border-bottom: 3px solid #ffffff;
}

.menu__list__flex:hover {
  background: #2B2B2B;
  height: 45px;
  padding: 20px;
}

.arrow {
  width: 20px;
  height: 20px;
  margin: 5px;
}


.container__one {
  background: #e8e8e8;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.container__one__title1 {
  font: 96px/0.85 "Montserrat", sans-serif;
  font-stretch: expanded;
  letter-spacing: -0.01em;
  margin: -5vh 0 0 0;
}

.container__one__title2 {
  font: 108px/0.85 "Caveat", serif;
  font-stretch: expanded;
  letter-spacing: -0.01em;
}

.container__one__subtitle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font: 22px/0.85 "Montserrat", sans-serif;
  font-stretch: expanded;
  letter-spacing: -0.01em;
  margin: 45px 0 0 0;
}

.container__one__button {
  display: flex;
  align-items: center;
  justify-content: center;
  font: 22px/0.85 "Montserrat", sans-serif;
  font-stretch: expanded;
  letter-spacing: -0.01em;
  color: white;
  height: 50px;
  width: 430px;
  border-radius: 100px;
  background: black;
  margin: 45px 0 0 0;
}

.container__one__scroll {
  font: 24px/0.85 "Montserrat", sans-serif;
  font-stretch: expanded;
  letter-spacing: -0.01em;
  margin: 70px 0 0 35px;
  position: absolute;
  bottom: 30px;
  left: 0;
}

.container__one__figure1 {
  position: absolute;
  top: 50px;
  right: 0px;
  width: 180px;
  height: 180px;
  margin: 0;
}

.container__one__figure2 {
  position: absolute;
  bottom: 80px;
  left: 10px;
  width: 200px;
  height: 200px;
  margin: 0;
  transform: rotate(-15deg);
}


.container__two {
  height: 120vh;
  background: white;
  width: 100%;
  position: relative;
}

.container__two__block {
  display: flex;
  align-items: center;
}

.container__two__title {
  font: 48px "Montserrat", sans-serif;
  margin: 35px 0 0 35px;
  width: 800px;
}

.container__two__schemmisprav {
  font: 48px "Montserrat", sans-serif;
  margin: 55px 0 0 35px;
  width: 800px;
}

.container__two__block__block {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 800px;
  gap: 40px;
  padding: 20px 0 20px 40px;
  background: #e8e8e8;
  border: 0 solid black;
  border-width: 0 0 0 3px;
}

.container__two__llm {
  margin: 0 0 60px 0;
}

.container__two__text {
  font: 24px "Merriweather", serif;
  color: #737373;
  margin: 15px 0 0 35px;
  width: 800px;
}

.container__two__join {
  font: 24px "Merriweather", serif;
  margin: 35px 0 0 0;
  display: flex;
  align-items: center;
  text-decoration: underline;
}

.container__two__img {
  width: 350px;
  height: 350px;
  margin: 0 35px 0 auto;
  position: absolute;
  right: 0;
  bottom: 150px;
}


.footer {
  height: 95vh;
  padding: 85px 35px 0 35px;
  background-color: #1c1c1c;
}

.footer__sep {
  height: 1px;
  width: 100%;
  background: white;
  margin: 10vh 0 5vh 0;
}

.footer__preamble {
  font: 30px/3 "Merriweather", sans-serif;
  height: 50px;
  color: white;
  margin: 0 0 1vh 0;
}

.footer__rows {
  display: flex;
  gap: 10vw;
}

.footer__cols {
  display: flex;
  flex-direction: column;
  font: 20px/3 "Merriweather", sans-serif;
  color: #A8A8A8;
  margin: 0;
}

.footer__cols a {
  color: #A8A8A8;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 8px;
}

.footer__information {
  font: 16px/1.5 "Merriweather", sans-serif;
  margin: 2.5vh 0 0 0;
}

.footer__title {
  font: bold 30px/4 "Merriweather", sans-serif;
  font-stretch: expanded;
  color: white;
}

.footer__contacts {
  font: bold 24px/3 "Merriweather", serif;
  height: 300px;
  color: white;
}

.footer__le {
  font: 16px/3 "Merriweather", sans-serif;
  color: #A8A8A8;
  height: 50px;
  margin: 10vh 0 1vh 0;
}

.container__three__a {
  font: bold 270px "Montserrat", sans-serif;
  color: #FFFFFF;
  margin: 0 0 55px 35px;
  height: 150px;
  letter-spacing: -25px;
}

.container__three__b {
  font: bold 270px "Montserrat", sans-serif;
  color: #858585;
  margin: 0 35px 55px 508px;
  height: 150px;
  letter-spacing: -25px;
}

.container__three__c {
  font: bold 270px "Montserrat", sans-serif;
  color: #464646;
  margin: 0 35px 55px auto;
  height: 150px;
  letter-spacing: -25px;
}


.join {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8e8e8;
  height: 100vh;
  width: 100%;
}

.join__container {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  height: 95vh;
  width: 600px;
  border-radius: 30px;
  margin: 10px 0 0 0;
}

.join__menu {
  display: flex;
  align-items: center;
  justify-content: center;
  font: 20px "Montserrat", sans-serif;
  color: #ffffff;
  height: 45px;
  padding: 20px;
  background: #000000;
  width: 300px;
  border-radius: 100px;
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 1000;
}

.join__container__text1 {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px 0 0 0;
  height: 50px;
  font: bold 24px/0.85 "Montserrat", sans-serif;
}

.join__container__form {
  margin: 10px 0 0 0;
}

.join__container__label {
  font: 14px/0.85 "Montserrat", sans-serif;
  margin: 0 35px 0 35px;
}

.join__container__field {
  display: flex;
  flex-direction: column;
  padding: 0 20px 0 20px;
  outline: none;
  appearance: none;
  margin: 10px 35px 30px 35px;
  font: 24px/0.85 "Montserrat", sans-serif;
  border: 1px solid gray;
  border-radius: 24px;
  height: 52px;
  width: 90%;
}

.join__container__container {
  display: flex;
  align-items: center;
  gap: 201px;
  margin: 0 0 30px 0;
}

.join__container__container__label {
  font: 14px/0.85 "Montserrat", sans-serif;
  margin: 0 35px 0 35px;
  color: #737373;
  transition: color 0.2s ease;
}

.join__container__container__label:hover { color: #0a0a0a; }

.join__container__button {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 24px;
  padding: 0;
  outline: none;
  appearance: none;
  margin: 10px 30px 30px 30px;
  font: 24px/0.85 "Montserrat", sans-serif;
  height: 52px;
  width: 90%;
  background: black;
  color: white;
  cursor: pointer;
}

.join__container__button:hover {
  background: #2B2B2B;
}

.join__container__container__container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 60px 0;
  font: 14px/0.85 "Montserrat", sans-serif;
  color: #737373;
  transition: color 0.2s ease;
}

.join__container__container__container b {
  color: #0a0a0a;
}

.join__container__container__container:hover { color: #0a0a0a; }

.join__container__other {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font: 24px/0.85 "Montserrat", sans-serif;
  border: 0;
  border-radius: 24px;
  height: 52px;
  width: 90%;
  background: black;
  color: white;
  margin: auto 30px 10px 30px;
}


.recovery_password__container__button {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 24px;
  padding: 0;
  outline: none;
  appearance: none;
  margin: 0px 30px 10px 30px;
  font: 24px/0.85 "Montserrat", sans-serif;
  height: 52px;
  width: 90%;
  background: black;
  color: white
}

.recovery_password__container__field {
  display: flex;
  flex-direction: column;
  padding: 0 20px 0 20px;
  outline: none;
  appearance: none;
  margin: 10px 35px 10px 35px;
  font: 24px/0.85 "Montserrat", sans-serif;
  border: 1px solid gray;
  border-radius: 24px;
  height: 52px;
  width: 90%;
}

.recovery_password__netottel {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin: 0 35px 10px 0;
  font: 14px/0.85 "Montserrat", sans-serif;
  color: #737373;
}


.register__container__field {
  display: flex;
  flex-direction: column;
  padding: 0 20px 0 20px;
  outline: none;
  appearance: none;
  margin: 10px 35px 10px 35px;
  font: 24px/0.85 "Montserrat", sans-serif;
  border: 1px solid gray;
  border-radius: 24px;
  height: 52px;
  width: 90%;
}

.register__container__label {
  font: 14px/0.85 "Montserrat", sans-serif;
  margin: 0 35px 0 35px;
}

.register__container__label a {
  color: #737373;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.register__container__label a:hover { color: #0a0a0a; }

.register__container__checkboxes {
  display: flex;
  flex-direction: column;
  font: 14px/0.85 "Montserrat", sans-serif;
  gap: 20px;
  margin: 20px 0 20px 0;
}

.register__error {
  display: flex;
  align-items: center;
  justify-content: center;
  font: 14px/0.85 "Montserrat", sans-serif;
  color: red;
}

.register__success {
  display: flex;
  align-items: center;
  justify-content: center;
  font: 14px/0.85 "Montserrat", sans-serif;
  color: green;
}

.register__container__code__button {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 24px;
  padding: 0;
  outline: none;
  appearance: none;
  margin: 0;
  font: 24px/0.85 "Montserrat", sans-serif;
  color: #737373;
  height: 52px;
  width: 50%;
  background: #EBEBEB;
  cursor: pointer;
}

.register__container__code__field {
  display: flex;
  flex-direction: column;
  padding: 0 20px 0 20px;
  outline: none;
  appearance: none;
  margin: 0;
  font: 24px/0.85 "Montserrat", sans-serif;
  border: 1px solid gray;
  border-radius: 24px;
  height: 52px;
  width: 50%;
}

.container__code {
  display: flex;
  margin: 10px 35px 10px 35px;
  gap: 5%;
}









.littlealice__textarea {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font: 16px/0.85 "Montserrat", sans-serif;
  padding: 2vh 1vw;
  width: 80vw;
  height: 35vh;
  min-height: 35vh;
  max-height: 90vh;
  margin: 0 10vw 5vh 10vw;
  resize: vertical;
  line-height: 1.5;
  border: 2px solid #d1d5db;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  border-radius: 24px;
}

.littlealice__container2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1vw;
  margin: 0 30px 30px 30px;
}

.littlealice__button {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 24px;
  padding: 0;
  outline: none;
  appearance: none;
  margin: 0 0 20vh 0;
  font: 24px/0.85 "Montserrat", sans-serif;
  height: 52px;
  width: 40%;
  background: black;
  color: white;
  cursor: pointer;
}


.alice__result {
  border: 2px solid black;
  border-radius: 24px;
  padding: 30px;
  margin: 40px 0 0 0;
}

.littlealice__counter {
  font: 14px "Montserrat", sans-serif;
  color: #737373;
  position: absolute;
  top: -4vh;
  right: 9vw;
}

.littlealice__messages {
  margin: 0 0 3vh 0;
  position: relative;
}


.report {
  max-width: 900px;
  margin: 0 auto;
  padding: 140px 35px 80px 35px;
}

.report__title {
  font: 48px "Montserrat", sans-serif;
  margin: 0 0 30px 0;
}

.report__subtitle {
  font: 30px "Montserrat", sans-serif;
  margin: 50px 0 20px 0;
}

.report__head {
  border: 2px solid black;
  border-radius: 24px;
  padding: 30px;
}

.report__score {
  font: bold 72px/1 "Montserrat", sans-serif;
  letter-spacing: -0.02em;
}

.report__verdict {
  font: 24px "Montserrat", sans-serif;
  margin: 10px 0 0 0;
}

.report--human .report__verdict { color: #1f7a3d; }
.report--mixed .report__verdict { color: #b07d00; }
.report--ai    .report__verdict { color: #b02020; }

.report--human .report__bar__fill { background: #1f7a3d; }
.report--mixed .report__bar__fill { background: #b07d00; }
.report--ai    .report__bar__fill { background: #b02020; }

.report__bar {
  height: 14px;
  border-radius: 8px;
  background: #e8e8e8;
  margin: 25px 0 20px 0;
  overflow: hidden;
}

.report__bar__fill {
  height: 100%;
  width: 0;
  background: black;
}

.report__meta {
  font: 15px "Montserrat", sans-serif;
  color: #737373;
}

.report__warnings {
  margin: 25px 0 0 0;
}

.report__warning {
  background: #e8e8e8;
  border-left: 3px solid black;
  padding: 15px 20px;
  margin: 0 0 10px 0;
  font: 15px/1.5 "Montserrat", sans-serif;
}

.report__table {
  width: 100%;
  border-collapse: collapse;
  font: 15px "Montserrat", sans-serif;
}

.report__table th,
.report__table td {
  text-align: left;
  padding: 14px 10px;
  border-bottom: 1px solid #d1d5db;
}

.report__table th {
  font-weight: 600;
  white-space: nowrap;
}

.report__cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.report__mini {
  height: 8px;
  width: 120px;
  border-radius: 4px;
  background: #e8e8e8;
  overflow: hidden;
}

.report__mini__fill {
  height: 100%;
  background: black;
}

.report__chunks {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.report__chunk {
  display: flex;
  align-items: center;
  gap: 15px;
  font: 15px "Montserrat", sans-serif;
}

.report__chunk__name {
  width: 110px;
  color: #737373;
}

.report__chunk__bar {
  flex: 1;
  height: 10px;
  border-radius: 5px;
  background: #e8e8e8;
  overflow: hidden;
}

.report__chunk__fill {
  height: 100%;
  background: black;
}

.report__note {
  background: #e8e8e8;
  border-radius: 16px;
  padding: 20px;
  margin: 45px 0 0 0;
  font: 15px/1.6 "Montserrat", sans-serif;
}

.report__back {
  width: auto;
  padding: 0 35px;
  margin: 30px 0 0 0;
  text-decoration: none;
}

.report__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  padding: 60px 0;
}

.report__empty__text {
  font: 24px "Montserrat", sans-serif;
  color: #737373;
}


@media (max-width: 720px) {

  .report {
    padding: 100px 15px 50px 15px;
  }

  .report__title { font-size: 30px; }
  .report__subtitle { font-size: 22px; }
  .report__score { font-size: 48px; }

  .report__table th,
  .report__table td {
    padding: 10px 4px;
    font-size: 13px;
  }

  .report__mini { width: 60px; }
  .report__chunk__name { width: 80px; font-size: 13px; }
}


/* ==========================================================================
   ЧАСТЬ ВТОРАЯ — аккаунт, тарифы, отчёт, куки, правовые страницы.

   Направление: модный лукбук, а не панель управления.
   Три правила, которым подчинено всё ниже:

   1. Разрыв масштабов. Дисплейный кегль доходит до 13vw, служебная
      подпись — 10px. Между ними ничего. Так набирают обложки.
   2. Элис стоит на листе вырезанной. Никаких рамок, подложек
      и «фотоблоков»: в лукбуке модель не сидит в коробке.
   3. Линейки вместо коробок. Горизонтальная линия во всю ширину —
      структура. Рамка вокруг каждого элемента — это интерфейс банка.
   ========================================================================== */

:root {
  --ink: #0a0a0a;
  --paper: #ffffff;
  --field: #e8e8e8;
  --smoke: #8c8c8c;
  --line: #dcdcdc;

  /* Цвет появляется на сайте ровно в одном месте — в вердикте. */
  --human: #1f6f43;
  --mixed: #8a6a12;
  --ai: #a32222;
}


/* --- Полотно страницы -----------------------------------------------------

   Ни html, ни body не задавали фон, и color-scheme объявлена не была.
   Пока браузер светлый, это незаметно: полотно белое, чёрные заголовки
   читаются. Но у пользователя с тёмной темой браузер подставляет своё
   тёмное полотно — и вся вёрстка, рассчитанная на белое, разваливается:
   заголовки разделов становятся чёрным по чёрному, бледно-серые номера
   шагов (#f4f4f4) вспыхивают почти белым поверх текста, а серые подписи
   сливаются с фоном. Именно так сайт и выглядел на телефоне.

   Сайт светлый по замыслу, тёмные только первый экран, подвал и баннер
   о куках — у них свой фон. Поэтому объявляем светлую схему явно. */

html {
  background: var(--paper);
  color-scheme: light;
}


/* --- Служебная подпись ----------------------------------------------------
   Самый мелкий голос в системе. Держит даты, единицы, номера. */

.eyebrow {
  font: 500 10px/1 "Montserrat", sans-serif;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--smoke);
}

.eyebrow--ink { color: var(--ink); }


/* ==========================================================================
   ШАПКА: лого слева, меню по центру, аккаунт справа
   ========================================================================== */

.account {
  position: fixed;
  /* Ровно те же координаты, что у меню и логотипа: меню сидит
     на top: 10px при высоте 45px, логотип — на 7px при высоте 51px,
     оба центрируются по 32.5px. При top: 18px аккаунт висел
     на восемь пикселей ниже строки. По горизонтали зеркалим
     логотип: у него left: 35px. */
  top: 10px;
  right: 35px;
  z-index: 1001;
  display: flex;
  align-items: center;
  gap: 0;
  height: 45px;
}

.account__item {
  position: relative;
  display: grid;
  align-items: center;
  height: 45px;
  padding: 0 18px;
  color: #ffffff;
  background: #000000;
  font: 500 12px/1 "Montserrat", sans-serif;
  letter-spacing: 0.06em;
  cursor: pointer;
  white-space: nowrap;
}

.account__item:first-child { border-radius: 100px 0 0 100px; padding-left: 22px; }
.account__item:last-child  { border-radius: 0 100px 100px 0; padding-right: 22px; }
.account__item:only-child  { border-radius: 100px; padding: 0 22px; }

/* Тонкая перегородка между почтой и балансом. */
.account__item + .account__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  bottom: 13px;
  width: 1px;
  background: rgba(255, 255, 255, 0.28);
}

.account__item:hover { background: #2b2b2b; color: #ffffff; }

/* Подмена подписи при наведении.
   Обе строки лежат в одной ячейке грида, поэтому ширина берётся
   по длинной из них и кнопка не дёргается. */
.account__from,
.account__to {
  grid-area: 1 / 1;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.account__to {
  opacity: 0;
  transform: translateY(4px);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.account__item:hover .account__from {
  opacity: 0;
  transform: translateY(-4px);
}

.account__item:hover .account__to {
  opacity: 1;
  transform: none;
}

/* Баланс кончился — выворачиваем наизнанку, это единственный
   способ заметить его, не добавляя цвет. */
.account__item--empty {
  background: #ffffff;
  color: #000000;
}

.account__item--empty:hover { background: var(--field); color: #000000; }

.account__item--empty + .account__item::before,
.account__item--empty::before { background: rgba(0, 0, 0, 0.2); }

@media (max-width: 1100px) {
  .account { right: 16px; }
  .account__item { padding: 0 12px; font-size: 11px; }
  .account__item--email { display: none; }
}


/* ==========================================================================
   ПОЛОСА-ЗАГОЛОВОК СТРАНИЦЫ
   Крупный набор, который обрезается краем экрана. Это и есть обложка.
   ========================================================================== */





/* Линейка во всю ширину — структурный элемент, а не украшение. */
.rule {
  height: 1px;
  background: var(--ink);
  margin: 0;
}

.rule--thin { background: var(--line); }


/* ==========================================================================
   ТАРИФЫ — прайс-лист, а не карточки
   Строка читается слева направо: номер, название, цена за штуку, сумма.
   Наведение выворачивает всю строку. Так список сравнивается взглядом
   сверху вниз, и лестница выгоды видна сразу.
   ========================================================================== */

.price {
  padding: 0 0 90px;
}

.price__group {
  margin-bottom: 76px;
}

.price__caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 6vw 16px;
}

.price__list {
  border-top: 1px solid var(--ink);
}

.price__row {
  display: grid;
  grid-template-columns: 128px 1fr 190px 150px 56px;
  align-items: center;
  gap: 20px;
  padding: 30px 6vw;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  width: 100%;
  text-align: left;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease, padding 0.22s ease;
}

.price__row:hover:not(:disabled),
.price__row:focus-visible:not(:disabled) {
  background: var(--ink);
  color: var(--paper);
  padding-left: 7vw;
}

.price__row:disabled { cursor: not-allowed; }

/* Номер лота: то, что первым цепляет взгляд в аукционном каталоге. */
.price__lot {
  font: 900 clamp(38px, 4.4vw, 62px)/0.8 "Montserrat", sans-serif;
  font-stretch: expanded;
  letter-spacing: -0.05em;
}

.price__name {
  font: 300 clamp(17px, 1.7vw, 23px)/1.25 "Merriweather", serif;
}

.price__unit {
  font: 500 11px/1.5 "Montserrat", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--smoke);
}

.price__row:hover:not(:disabled) .price__unit { color: #a8a8a8; }

.price__sum {
  font: 900 clamp(22px, 2.3vw, 32px)/1 "Montserrat", sans-serif;
  letter-spacing: -0.025em;
  text-align: right;
  white-space: nowrap;
}

.price__go {
  font: 300 26px/1 "Montserrat", sans-serif;
  text-align: right;
  opacity: 0.25;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.price__row:hover:not(:disabled) .price__go {
  opacity: 1;
  transform: translateX(6px);
}

.price__note {
  padding: 34px 6vw 0;
  font: 300 15px/1.8 "Merriweather", serif;
  color: #444444;
  max-width: 78ch;
}

.price__note a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 860px) {
  .price__row {
    grid-template-columns: 72px 1fr auto;
    row-gap: 6px;
    padding: 22px 6vw;
  }
  .price__lot { font-size: 30px; grid-row: 1 / span 2; }
  .price__name { grid-column: 2; }
  .price__unit { grid-column: 2; }
  .price__sum  { grid-column: 3; grid-row: 1 / span 2; }
  .price__go   { display: none; }
  .price__row:hover:not(:disabled) { padding-left: 6vw; }
}


/* ==========================================================================
   ПЛАШКА «ЗАПРОСЫ КОНЧИЛИСЬ»
   ========================================================================== */

.paywall {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
  width: min(920px, 88vw);
  margin: 0 auto 26px;
  padding: 26px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.paywall[hidden] { display: none; }

.paywall__text {
  font: 300 17px/1.55 "Merriweather", serif;
  max-width: 46ch;
}

.paywall__text b {
  font: 900 17px/1.55 "Montserrat", sans-serif;
  letter-spacing: -0.015em;
}

.paywall__link {
  font: 500 11px/1 "Montserrat", sans-serif;
  letter-spacing: 0.2em;
  text-transform: lowercase;
  padding: 16px 30px;
  background: var(--ink);
  color: var(--paper);
  white-space: nowrap;
}

.paywall__link:hover { background: #2b2b2b; color: var(--paper); }


/* ==========================================================================
   ОТЧЁТ — разворот журнала
   Элис вырезана и стоит на листе. Оценка набрана поверх неё:
   цифра и лицо — одно высказывание, а не картинка с подписью.
   ========================================================================== */

.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10, 10, 10, 0.6);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 34px 18px;
  animation: fade 0.22s ease;
}

.modal[hidden] { display: none; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.modal__sheet {
  background: var(--paper);
  width: min(1000px, 100%);
  position: relative;
  animation: rise 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes rise {
  from { transform: translateY(22px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 46px;
  height: 46px;
  border: none;
  background: transparent;
  font: 200 32px/1 "Montserrat", sans-serif;
  color: var(--ink);
  cursor: pointer;
  z-index: 4;
}

.modal__close:hover { background: var(--field); }


/* --- Обложка отчёта ------------------------------------------------------- */

.verdict {
  position: relative;
  background: var(--field);
  padding: 44px 48px 0;
  overflow: hidden;
  /* Высота задана снизу, чтобы Элис всегда помещалась целиком:
     она приклеена к нижнему краю, и при коротком тексте её обрезало
     бы сверху — то есть по голове. */
  min-height: 400px;
}

.verdict__eyebrow { margin-bottom: 26px; }

/* Цифра во всю ширину листа. Она здесь главная. */
.verdict__score {
  font: 900 clamp(90px, 17vw, 210px)/0.78 "Montserrat", sans-serif;
  font-stretch: expanded;
  letter-spacing: -0.055em;
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.verdict__line {
  font: 900 clamp(19px, 2.6vw, 34px)/1.08 "Montserrat", sans-serif;
  letter-spacing: -0.02em;
  max-width: 15ch;
  position: relative;
  z-index: 2;
  margin-top: 6px;
}

.verdict--human .verdict__score, .verdict--human .verdict__line { color: var(--human); }
.verdict--mixed .verdict__score, .verdict--mixed .verdict__line { color: var(--mixed); }
.verdict--ai    .verdict__score, .verdict--ai    .verdict__line { color: var(--ai); }

/* Элис стоит справа, вырезанная. Цифра заходит на неё слева —
   отсюда ощущение разворота, а не карточки с картинкой. */
/* Размер задаётся по высоте, а не по ширине: так фигура привязана
   к нижней линейке и не выходит за пределы обложки. */
.verdict__portrait {
  position: absolute;
  right: 18px;
  bottom: 0;
  height: clamp(190px, 78%, 340px);
  z-index: 1;
  pointer-events: none;
}

.verdict__portrait img {
  display: block;
  height: 100%;
  width: auto;
}

/* Реплика Элис — единственное место с рукописным шрифтом на сайте. */
.verdict__voice {
  font: 400 clamp(21px, 2.2vw, 29px)/1.2 "Caveat", cursive;
  color: #2b2b2b;
  max-width: 26ch;
  position: relative;
  z-index: 2;
  margin: 24px 0 0;
  padding-bottom: 40px;
}

.verdict__meta {
  border-top: 1px solid rgba(0, 0, 0, 0.16);
  padding: 16px 48px 18px;
  background: var(--field);
  font: 500 10px/1.9 "Montserrat", sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #5e5e5e;
  overflow-wrap: anywhere;
}


/* --- Тело отчёта ---------------------------------------------------------- */

.sheet__body { padding: 44px 48px 20px; }

.sheet__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 12px;
  margin: 44px 0 0;
}

.sheet__heading:first-child { margin-top: 0; }

.sheet__heading h2 {
  font: 900 17px/1.2 "Montserrat", sans-serif;
  letter-spacing: -0.01em;
}

/* Замечания: не «алерт-боксы», а врезка на линейке. */
.notes { margin-bottom: 8px; }

.note {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font: 300 15px/1.55 "Merriweather", serif;
  color: #333333;
}

.note::before {
  content: "!";
  font: 900 13px/1.5 "Montserrat", sans-serif;
}

/* Таблица показателей: только горизонтальные линейки,
   числа прижаты вправо, вклад — тонкая полоса заподлицо. */
.grid-table { width: 100%; border-collapse: collapse; }

.grid-table th {
  font: 500 10px/1 "Montserrat", sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--smoke);
  text-align: left;
  padding: 14px 0 12px;
  border-bottom: 1px solid var(--line);
}

.grid-table th:nth-child(2), .grid-table td:nth-child(2) { text-align: right; width: 108px; }
.grid-table th:nth-child(3), .grid-table td:nth-child(3) { text-align: right; width: 168px; }

.grid-table td {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font: 300 15px/1.4 "Merriweather", serif;
  vertical-align: middle;
}

.grid-table tr:last-child td { border-bottom: none; }

.grid-table .row--model td {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 14px;
}

.value {
  font: 500 14px/1 "Montserrat", sans-serif;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.share {
  display: inline-grid;
  grid-template-columns: 1fr 44px;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.share__track { height: 2px; background: var(--line); }
.share__fill { height: 2px; background: var(--ink); }

.share__number {
  font: 500 14px/1 "Montserrat", sans-serif;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Фрагменты */
.chunks { display: flex; flex-direction: column; }

.chunk {
  display: grid;
  grid-template-columns: 108px 1fr 52px;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.chunk__name {
  font: 500 10px/1 "Montserrat", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--smoke);
}

.chunk__track { height: 2px; background: var(--line); }
.chunk__fill { height: 2px; background: var(--ink); }

.chunk__value {
  font: 500 13px/1 "Montserrat", sans-serif;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.disclaimer {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--ink);
  font: 300 14px/1.75 "Merriweather", serif;
  color: #444444;
  max-width: 74ch;
}

.sheet__actions {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--ink);
  margin-top: 40px;
}

.sheet__button {
  flex: 1;
  font: 500 11px/1 "Montserrat", sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 22px 20px;
  border: none;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: background 0.2s ease;
}

.sheet__button:hover { background: #2b2b2b; }

.sheet__button--ghost {
  background: var(--paper);
  color: var(--ink);
  border-left: 1px solid var(--ink);
}

.sheet__button--ghost:hover { background: var(--field); }

@media (max-width: 720px) {
  .verdict { padding: 34px 24px 0; }
  .verdict__portrait { width: 46%; right: -8px; opacity: 0.9; }
  .verdict__voice { max-width: 18ch; padding-bottom: 26px; }
  .verdict__meta, .sheet__body { padding-left: 24px; padding-right: 24px; }
  .sheet__actions { flex-direction: column; }
  .sheet__button--ghost { border-left: none; border-top: 1px solid var(--ink); }
  .grid-table th:nth-child(2), .grid-table td:nth-child(2) { display: none; }
}


/* ==========================================================================
   ПРОФИЛЬ
   ========================================================================== */
















/* ==========================================================================
   БАННЕР О КУКАХ
   ========================================================================== */

.cookies {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3000;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  /* minmax(0, 1fr), а не 1fr: у обычного 1fr минимум равен содержимому,
     поэтому на узком экране колонка с текстом отказывалась сжиматься и
     выталкивала всю страницу вбок — вместе с шапкой и всем остальным. */
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 40px;
  padding: 22px 6vw;
  animation: slide 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookies[hidden] { display: none; }

@keyframes slide {
  from { transform: translateY(100%); }
  to   { transform: none; }
}

.cookies__text {
  font: 300 14px/1.6 "Merriweather", serif;
  max-width: 82ch;
}

.cookies__text a { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }

.cookies__buttons { display: flex; gap: 10px; }

.cookies__button {
  font: 500 10px/1 "Montserrat", sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 15px 26px;
  border: 1px solid var(--paper);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
}

.cookies__button--ghost { background: transparent; color: var(--paper); }
.cookies__button--ghost:hover { background: #2b2b2b; }

/* На телефоне кнопки не помещаются рядом с текстом — ставим их под ним.

   minmax(0, 1fr), а не 1fr: у обычного 1fr минимальный размер равен
   содержимому, поэтому колонка с текстом отказывалась сжиматься и
   растягивала баннер до 764 px на экране в 375 — вместе со всей
   страницей, которая начинала ездить вбок. */

@media (max-width: 820px) {
  .cookies { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .cookies__buttons { flex-direction: column; }
}


/* ==========================================================================
   ПРАВОВЫЕ СТРАНИЦЫ
   ========================================================================== */

.legal {
  padding: 0 6vw 110px;
  max-width: 74ch;
}

.legal h2 {
  font: 900 18px/1.3 "Montserrat", sans-serif;
  letter-spacing: -0.01em;
  margin: 52px 0 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.legal p, .legal li {
  font: 300 16px/1.85 "Merriweather", serif;
  margin-bottom: 13px;
}

.legal ul { margin: 0 0 13px 20px; }
.legal li { list-style: disc; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }


/* ==========================================================================
   ДОСТУПНОСТЬ
   ========================================================================== */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
label:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.menu a:focus-visible,
.account__item:focus-visible,
.cookies button:focus-visible {
  outline-color: #ffffff;
  outline-offset: -4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ==========================================================================
   ПЕЧАТЬ ОТЧЁТА В PDF
   ========================================================================== */

@media print {
  nav, .account, .cookies, .modal__close, .sheet__actions,
  footer, form, .paywall {
    display: none !important;
  }

  body { background: #ffffff; }

  .modal {
    position: static;
    background: none;
    padding: 0;
    display: block;
    overflow: visible;
    animation: none;
  }

  .modal__sheet { width: 100%; animation: none; }

  .verdict { background: #ffffff; padding-top: 0; }
  .verdict__meta { background: #ffffff; }

  .verdict, .note, .chunk, .disclaimer { break-inside: avoid; }

  a[href]::after { content: ""; }

  @page { margin: 15mm; }
}


/* --- Пункты меню ----------------------------------------------------------
   Подчёркивание было жёсткой границей, которая появлялась скачком
   и меняла высоту строки. Теперь граница есть всегда, но прозрачная,
   и цвет к ней приезжает плавно — подсветка следует за прокруткой. */

.menu__list__flex {
  height: 45px;
  padding: 0 16px;
  border-bottom: 3px solid transparent;
  transition: background 0.2s ease, border-color 0.28s ease;
  white-space: nowrap;
}

.menu__list__flex:hover {
  background: #2b2b2b;
  height: 45px;
  padding: 0 16px;
}

.menu__list__active {
  height: 45px;
  border-bottom: 3px solid #ffffff;
}

@media (max-width: 900px) {
  .menu { font-size: 15px; max-width: calc(100vw - 200px); }
  .menu__list__flex { padding: 0 10px; }
  .menu__list__flex:hover { padding: 0 10px; }
}


/* ==========================================================================
   ЧАСТЬ ТРЕТЬЯ — лендинг, вариант C.

   Ширина содержимого держится боковой границей: от неё начинается
   всё, что есть на странице, и вертикаль прослеживается сверху донизу.
   На узких экранах граница сжимается, но остаётся единой.
   ========================================================================== */

:root {
  --edge: clamp(20px, 5vw, 64px);
  --night: #12100f;
}

.edge {
  margin-left: var(--edge);
  margin-right: var(--edge);
}


/* --- Шапка поверх тёмного экрана -----------------------------------------
   Тот же фиксированный блок, что на остальных страницах, только
   перекрашенный: чёрная пилюля на почти чёрном фоне не читалась бы. */

.nav--over .menu {
  /* Прозрачная пилюля на тёмном экране просто не читалась.
     Чёрная с тонким светлым контуром: край виден, фон плотный. */
  background: #000000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  padding: 0 26px;
}

.nav--over .menu__list__flex {
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0 15px;
}

.nav--over .menu__list__flex:hover {
  background: transparent;
  color: #ffffff;
  padding: 0 15px;
}

.nav--over .menu__list__active {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

.nav--over .menu__icon {
  /* Файл уже белый на прозрачном. Прежний filter: invert(1)
     выворачивал не только начертание, но и белую подложку под ним —
     получалось чёрное на чёрном. */
  background: transparent;
  padding: 0;
  filter: none;
}

.nav--over .account__item {
  /* Тот же кегль, вес и разрядка, что у пунктов меню:
     иначе «войти» выбивается из строки. */
  background: #000000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  font: 500 15px/1 "Montserrat", sans-serif;
  letter-spacing: 0.02em;
}

.nav--over .account__item + .account__item::before { background: transparent; }

.nav--over .account__item--balance {
  background: #ffffff;
  color: var(--night);
  box-shadow: none;
}

.nav--over .account__item:hover { background: #2b2b2b; }
.nav--over .account__item--balance:hover { background: #e8e8e8; color: var(--night); }


/* --- Выпадашка под почтой ------------------------------------------------
   Раскрывается по наведению на весь блок, а не на саму строку с адресом:
   иначе меню захлопывалось бы, стоит увести курсор вниз к пунктам. */


/* --- Первый экран --------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  background: var(--night);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Здесь должна стоять затемнённая фотография работ. Пока текстура
   нарисована линиями — она задаёт настроение, но фотографией не
   притворяется. Чтобы подставить снимок: задать .hero background-image
   и убрать .hero__lines. */
.hero__lines {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image: repeating-linear-gradient(180deg, rgba(255,255,255,0.9) 0 1px, transparent 1px 9px);
  mask-image: radial-gradient(130% 100% at 78% 54%, #000 0%, transparent 76%);
  -webkit-mask-image: radial-gradient(130% 100% at 78% 54%, #000 0%, transparent 76%);
}

.hero__sheet {
  position: absolute;
  right: -40px;
  top: 90px;
  width: 620px;
  height: 760px;
  transform: rotate(7deg);
  opacity: 0.1;
  background-image: repeating-linear-gradient(180deg, rgba(255,255,255,0.9) 0 1px, transparent 1px 12px);
}

.hero__sheet--left {
  right: auto;
  left: -60px;
  top: 120px;
  width: 520px;
  height: 700px;
  transform: rotate(-8deg);
  opacity: 0.07;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18,16,15,0.97) 0%, rgba(18,16,15,0.86) 52%, rgba(18,16,15,0.58) 100%);
}

.hero__body {
  position: relative;
  z-index: 3;
  padding: 120px 0 0;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font: 500 13px/1.4 "Montserrat", sans-serif;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.62);
}

/* Комикс-облачко вокруг «ИИ-контента». */
.burst {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 168px;
  height: 46px;
}

.burst svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.burst span {
  position: relative;
  font: 700 13px/1 "Montserrat", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--night);
}

.hero__title {
  font: 300 clamp(46px, 9.2vw, 118px)/0.92 "Montserrat", sans-serif;
  font-stretch: expanded;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #ffffff;
  margin-top: 40px;
}

.hero__script {
  font: 400 clamp(60px, 11vw, 142px)/0.82 "Caveat", cursive;
  color: #ffffff;
  margin-top: 16px;
}

.hero__foot {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: auto;
  padding: 60px 0;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  height: 60px;
  padding: 0 38px;
  border-radius: 100px;
  background: #ffffff;
  color: var(--night);
  font: 600 13px/1 "Montserrat", sans-serif;
  letter-spacing: 0.14em;
  transition: background 0.22s ease;
}

.hero__cta:hover { background: var(--field); color: var(--night); }

.hero__note {
  font: 300 16px/1.6 "Merriweather", serif;
  color: rgba(255, 255, 255, 0.78);
  text-align: right;
}


/* --- Лента с типами работ ------------------------------------------------- */

.ribbon {
  background: var(--night);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  overflow: hidden;
  padding: 26px 0;
}

.ribbon__track {
  display: flex;
  width: max-content;
  animation: flow 34s linear infinite;
}

@keyframes flow {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.ribbon__item {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-right: 40px;
}

.ribbon__item span:first-child {
  font: 300 clamp(22px, 2.7vw, 34px)/1 "Montserrat", sans-serif;
  font-stretch: expanded;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
}

.ribbon__dot { font-size: 16px; color: rgba(255, 255, 255, 0.34); }


/* --- Заголовки разделов --------------------------------------------------- */

.tag {
  font: 500 15px/1.2 "Montserrat", sans-serif;
  letter-spacing: 0.3em;
  color: var(--smoke);
  margin-bottom: 16px;
}

.tag--ink { color: var(--ink); }

.hr {
  height: 2px;
  background: var(--ink);
  width: 100%;
}

.display {
  font: 300 clamp(34px, 5.2vw, 66px)/0.95 "Montserrat", sans-serif;
  font-stretch: expanded;
  letter-spacing: -0.035em;
}

.prose {
  font: 300 clamp(17px, 1.9vw, 24px)/1.6 "Merriweather", serif;
  color: #444444;
}

.prose b { font: 700 1em/1.6 "Montserrat", sans-serif; color: var(--ink); }

.about { padding-top: 90px; }
.about .display { margin: 30px 0 34px; }


/* --- Полоса цифр и шаги: во всю ширину, без учёта границ ------------------- */

.strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 30px;
}

.strip__cell {
  padding: 46px 30px 48px var(--edge);
  border-right: 1px solid var(--line);
}

.strip__label {
  font: 500 10px/1.2 "Montserrat", sans-serif;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--smoke);
}

.strip__value {
  font: 900 clamp(34px, 4.6vw, 58px)/0.9 "Montserrat", sans-serif;
  font-stretch: expanded;
  letter-spacing: -0.04em;
  margin-top: 16px;
}

.strip__note {
  font: 300 15px/1.5 "Merriweather", serif;
  color: #444444;
  margin-top: 10px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.step {
  position: relative;
  padding: 52px 44px 56px var(--edge);
  border-right: 1px solid var(--line);
  overflow: hidden;
}

/* Номер лежит за текстом во всю высоту ячейки. */
.step__number {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 18px;
  font: 900 clamp(120px, 19vw, 250px)/0.78 "Montserrat", sans-serif;
  font-stretch: expanded;
  letter-spacing: -0.07em;
  color: #f4f4f4;
  user-select: none;
  pointer-events: none;
}

.step__body { position: relative; }

.step__title {
  font: 700 clamp(20px, 2.1vw, 26px)/1.2 "Montserrat", sans-serif;
  letter-spacing: -0.01em;
}

.step__note {
  font: 300 17px/1.65 "Merriweather", serif;
  color: #737373;
  margin-top: 14px;
}


/* --- Кнопка-контур -------------------------------------------------------- */

.ghost {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 60px;
  padding: 0 34px;
  border-radius: 100px;
  /* Внутренняя тень, а не рамка: на скруглении в 100px обводка
     в один пиксель сглаживается по дуге и выглядит толще по бокам. */
  box-shadow: inset 0 0 0 2px var(--ink);
  font: 500 13px/1 "Montserrat", sans-serif;
  letter-spacing: 0.14em;
  transition: background 0.22s ease, color 0.22s ease;
}

.ghost:hover { background: var(--night); color: #ffffff; }
.ghost span:last-child { font-size: 19px; font-weight: 300; }


/* --- Пример отчёта -------------------------------------------------------- */

.demo {
  background: var(--field);
  border-radius: 32px;
  margin-top: 30px;
  position: relative;
  overflow: hidden;
  padding: 48px;
}

.demo__portrait {
  position: absolute;
  right: 40px;
  bottom: 0;
  height: 78%;
  width: auto;
}

.demo__score {
  position: relative;
  z-index: 2;
  font: 900 clamp(88px, 15.6vw, 200px)/0.78 "Montserrat", sans-serif;
  letter-spacing: -0.055em;
  color: var(--ai);
}

.demo__verdict {
  position: relative;
  z-index: 2;
  font: 700 clamp(21px, 2.5vw, 32px)/1.1 "Montserrat", sans-serif;
  margin-top: 12px;
  color: var(--ai);
}

/* Черта обрывается там, где начинается Элис, и не режет её. */
.demo__rule {
  position: relative;
  z-index: 2;
  width: 62%;
  height: 1px;
  background: rgba(0, 0, 0, 0.2);
  margin-top: 30px;
}

.demo__voice {
  position: relative;
  z-index: 2;
  font: 400 clamp(26px, 3.4vw, 44px)/1.15 "Caveat", cursive;
  margin-top: 24px;
  width: 62%;
}

.demo__meta {
  display: flex;
  gap: 44px;
  flex-wrap: wrap;
  padding: 16px 34px;
  margin-top: 14px;
  border-radius: 100px;
  box-shadow: inset 0 0 0 2px var(--line);
  font: 500 12px/1.6 "Montserrat", sans-serif;
  letter-spacing: 0.1em;
  color: var(--smoke);
}

.demo__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 76px;
  margin-top: 48px;
}

.demo__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink);
}

.demo__hint {
  font: 500 11px/1.4 "Montserrat", sans-serif;
  letter-spacing: 0.1em;
  color: var(--smoke);
}

.gauge {
  display: grid;
  grid-template-columns: 1fr 90px;
  align-items: baseline;
  padding: 16px 0 10px;
  border-bottom: 1px solid var(--line);
}

.gauge__name { font: 300 16px/1.4 "Merriweather", serif; }

.gauge__value {
  text-align: right;
  font: 700 20px/1 "Montserrat", sans-serif;
  font-variant-numeric: tabular-nums;
}

.gauge__track {
  grid-column: 1 / -1;
  height: 4px;
  border-radius: 100px;
  background: var(--line);
  margin-top: 12px;
}

.gauge__fill { height: 4px; border-radius: 100px; }

.disclaim {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  padding-top: 22px;
  align-items: start;
  font: 300 15px/1.65 "Merriweather", serif;
  color: #737373;
}

.disclaim__mark { font: 400 17px/1.3 "Montserrat", sans-serif; }

.demo__row {
  display: grid;
  grid-template-columns: 1fr 130px 120px;
  align-items: start;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.demo__row__name { font: 300 16px/1.4 "Merriweather", serif; overflow-wrap: anywhere; }

.demo__row__date {
  font: 500 11px/1.4 "Montserrat", sans-serif;
  letter-spacing: 0.1em;
  color: var(--smoke);
  padding-top: 7px;
}

.demo__row__score {
  text-align: right;
  font: 900 28px/1 "Montserrat", sans-serif;
  letter-spacing: -0.03em;
}

.demo__row__word {
  display: block;
  font: 500 11px/1.4 "Montserrat", sans-serif;
  letter-spacing: 0.1em;
  color: var(--smoke);
  margin-top: 4px;
}

.pair {
  display: flex;
  margin-top: 28px;
  border-radius: 100px;
  overflow: hidden;
  box-shadow: inset 0 0 0 2px var(--ink);
}

.pair > * {
  flex-grow: 1;
  text-align: center;
  height: 60px;
  line-height: 60px;
  font: 500 13px/60px "Montserrat", sans-serif;
  letter-spacing: 0.14em;
}

.pair__solid { background: var(--ink); color: #ffffff; }
.pair__ghost { background: var(--paper); color: var(--ink); }


/* --- Карточки тарифов ----------------------------------------------------- */

.plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.plans--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.plan {
  border-radius: 28px;
  box-shadow: inset 0 0 0 2px var(--line);
  padding: 34px 28px 28px;
  background: var(--paper);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  min-height: 340px;
  text-align: left;
  font-family: inherit;
  border: 0;
  cursor: pointer;
}

/* Выделенные ступени: самый выгодный пакет и год. */
.plan--dark {
  background: var(--night);
  color: #ffffff;
  box-shadow: inset 0 0 0 2px var(--night);
}

.plan--grey {
  background: var(--field);
  box-shadow: inset 0 0 0 2px var(--field);
}

.plan:disabled { cursor: not-allowed; }

.plan__name {
  font: 500 11px/1.2 "Montserrat", sans-serif;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--smoke);
}

.plan--dark .plan__name { color: rgba(255, 255, 255, 0.62); }

.plan__count {
  font: 300 clamp(48px, 5.9vw, 76px)/0.9 "Montserrat", sans-serif;
  font-stretch: expanded;
  letter-spacing: -0.05em;
  margin-top: 14px;
}

.plan__unit {
  font: 500 15px/1.2 "Montserrat", sans-serif;
  letter-spacing: 0.22em;
  margin-top: 10px;
}

.plan__per {
  font: 300 15px/1.6 "Merriweather", serif;
  color: #9a9a9a;
  margin-top: 18px;
  flex-grow: 1;
}

.plan--grey .plan__per { color: #6f6f6f; }
.plan--dark .plan__per { color: rgba(255, 255, 255, 0.66); }

.plan__sum {
  font: 700 clamp(24px, 2.6vw, 32px)/1 "Montserrat", sans-serif;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.plan__go {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  border-radius: 100px;
  box-shadow: inset 0 0 0 2px currentColor;
  font: 500 13px/1 "Montserrat", sans-serif;
  letter-spacing: 0.14em;
}

.plans--wide .plan { min-height: 300px; padding: 38px 38px 32px; }
.plans--wide .plan__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.plans--wide .plan__sum { margin-bottom: 0; }
.plans--wide .plan__go { padding: 0 46px; }

.plans__note {
  font: 300 15px/1.8 "Merriweather", serif;
  color: #737373;
  max-width: 78ch;
  margin-top: 44px;
}


/* --- Узкие экраны --------------------------------------------------------- */

@media (max-width: 1100px) {
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo__grid { grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); }
  .strip__cell:nth-child(2n) { border-right: 0; }
  .hero__foot { flex-direction: column; align-items: flex-start; }
  .hero__note { text-align: left; }
  .demo { padding: 32px 24px; }
  .demo__portrait { opacity: 0.28; height: 62%; }
  .demo__rule, .demo__voice { width: 100%; }
  .demo__row { grid-template-columns: 1fr auto; row-gap: 6px; }
  .demo__row__date { grid-column: 1; padding-top: 0; }
  .demo__row__score { grid-column: 2; grid-row: 1 / span 2; }
  .pair { flex-direction: column; border-radius: 28px; }
}

@media (max-width: 620px) {
  .strip { grid-template-columns: minmax(0, 1fr); }
  .strip__cell { border-right: 0; border-bottom: 1px solid var(--line); }

  /* minmax(0, 1fr), а не 1fr: у обычного 1fr минимум дорожки равен
     минимальной ширине содержимого. Карточка подписки с отступами по
     38 пикселей не ужималась и раздвигала дорожку до 366 при контейнере
     в 335 — страница ехала вбок. Те же грабли, что были у баннера кук. */
  .plans, .plans--wide { grid-template-columns: minmax(0, 1fr); }

  .plan { min-height: 0; }

  /* Заодно сами отступы: 38 пикселей с каждой стороны съедали четверть
     ширины телефона. */
  .plans--wide .plan { padding: 30px 22px 26px; }
}


/* --- Подчёркивание у документов в подвале ---------------------------------
   Было статичным, теперь набегает слева направо при наведении. */

.footer__cols a {
  position: relative;
  display: inline-block;
  text-decoration: none;
  width: fit-content;
}

.footer__cols a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer__cols a:hover::after { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  .footer__cols a::after { transition: none; }
}


/* --- Шапка на телефонах ---------------------------------------------------
   Меню, логотип и аккаунт в одну строку не помещаются. Прежде меню
   съезжало во вторую строку с прокруткой вбок, но это не работало:
   правило .menu { max-width: min(700px, calc(100vw - 260px)) } объявлено
   ниже по файлу и вне медиазапроса, поэтому на 375 пикселях зажимало
   пилюлю до 115 и пункты вылезали наружу вместе со страницей.

   Теперь всё меню уезжает под кнопку-бургер — см. раздел «БУРГЕР»
   в конце файла. Здесь остаётся только сдвиг логотипа к краю. */

@media (max-width: 900px) {
  .menu__icon { left: 12px; }
}

@media (max-width: 520px) {
  .account__item { padding: 0 12px; font-size: 12px; }
  .hero__foot { padding-bottom: 40px; }
  .hero__cta { height: 54px; padding: 0 26px; font-size: 12px; letter-spacing: 0.1em; }
}


/* --- Буквы в меню тяжелеют под курсором ----------------------------------
   Montserrat подключён переменным начертанием (wght@100..900), поэтому
   вес меняется плавно через font-variation-settings, а не ступенькой.
   Осветление всего пункта при наведении осталось прежним. */

.menu__list__flex { white-space: pre; }

.menu__letter {
  display: inline-block;
  font-variation-settings: "wght" 500;
  transition: font-variation-settings 0.12s linear;
}

@media (prefers-reduced-motion: reduce) {
  .menu__letter {
    transition: none;
    font-variation-settings: "wght" 500 !important;
  }
}


/* --- Правки шапки на лендинге --------------------------------------------- */

/* Логотип: чёрная подложка нужна всегда. Шапка фиксированная, и при
   прокрутке на белые разделы белое начертание без подложки исчезало. */
.nav--over .menu__icon {
  background: #000000;
  padding: 0;
  filter: none;
}

/* «Войти» стояло на пиксель ниже пунктов меню: у активного пункта
   снизу граница в 3px, которая приподнимает его текст, а у аккаунта
   такой границы не было. Даём ту же прозрачную границу. */
.nav--over .account__item {
  display: flex;
  align-items: center;
  height: 46px;
  border-bottom: 3px solid transparent;
}

.nav--over .account__item--login {
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.2s ease;
}

.nav--over .account__item--login:hover {
  color: #ffffff;
  background: #000000;
}

/* Буквы «войти» участвуют в том же эффекте, что и пункты меню. */
.account__item--login { white-space: pre; }


/* --- Раздел тарифов не должен упираться в подвал -------------------------- */

.pricing { padding-bottom: 110px; }


/* --- Кнопка внутри карточки тарифа ----------------------------------------
   Наведение с самой карточки снято, но кнопке отклик нужен: без него
   непонятно, что карточка кликабельна. Анимируется только она. */

.plan__go { transition: background 0.22s ease, color 0.22s ease; }

.plan:hover .plan__go,
.plan:focus-visible .plan__go {
  background: var(--ink);
  color: var(--paper);
}

.plan--dark:hover .plan__go,
.plan--dark:focus-visible .plan__go {
  background: #ffffff;
  color: var(--night);
}


/* --- Переключатель «вход / регистрация» -----------------------------------
   Две половины одной пилюли. Выбранная залита чёрным. Это ссылки,
   а не вкладки: страницы разные, у каждой свой адрес. */

.switch {
  display: flex;
  align-items: stretch;
  align-self: center;
  height: 46px;
  border-radius: 100px;
  box-shadow: inset 0 0 0 2px var(--line);
  overflow: hidden;
  margin: 24px 0 6px;
}

.switch__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  padding: 0 26px;
  font: 500 14px/1 "Montserrat", sans-serif;
  letter-spacing: 0.02em;
  color: #737373;
  transition: background 0.2s ease, color 0.2s ease;
}

.switch__item:hover { color: #0a0a0a; }

.switch__item--on,
.switch__item--on:hover {
  background: #0a0a0a;
  color: #ffffff;
}


/* --- Шапка на светлых страницах -------------------------------------------
   Та же чёрная пилюля и те же пункты, что на главной: кегль 15,
   вес 500, строчные. Раньше здесь был кегль 20 и заглавные. */

.menu__list__flex {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0 15px;
}

.menu__list__flex:hover { padding: 0 15px; }

.menu { padding: 0 26px; }

/* Аккаунт на светлых страницах набирается так же, как пункты. */
.account__item {
  font-size: 15px;
  letter-spacing: 0.02em;
  border-bottom: 3px solid transparent;
  height: 45px;
}

.account__item--login {
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.2s ease;
}

.account__item--login:hover { color: #ffffff; }


/* --- Вход, регистрация, смена пароля -------------------------------------- */

/* Шапка фиксированная и лежит поверх страницы. Без верхнего отступа
   карточка начиналась прямо под ней и упиралась в меню. */
.join {
  height: auto;
  min-height: 100vh;
  padding: 76px 20px 40px;
  align-items: flex-start;
}

.join__container {
  height: auto;
  max-width: 100%;
  padding-bottom: 34px;
  margin: 0;
}

/* Кнопки набираются как главная кнопка на лендинге: пилюля,
   мелкая разрядка прописными, плавная заливка при наведении. */
.join__container__button,
.recovery_password__container__button {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 100px;
  padding: 0;
  outline: none;
  appearance: none;
  height: 60px;
  width: calc(100% - 70px);
  margin: 20px 35px 10px;
  font: 500 13px/1 "Montserrat", sans-serif;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  background: #0a0a0a;
  color: #ffffff;
  cursor: pointer;
  transition: background 0.22s ease;
}

.join__container__button:hover,
.recovery_password__container__button:hover {
  background: #2b2b2b;
}

/* На узких экранах шапка занимает две строки. */
@media (max-width: 900px) {
  .join { padding-top: 112px; }
}


/* --- Аккаунт в шапке: почта и колонка под ней ------------------------------
   В шапке остаётся только адрес. Баланс, профиль и выход раскрываются
   под ним при наведении. */

.account__item--email {
  border-radius: 100px;
  max-width: 30ch;
  overflow: hidden;
  white-space: nowrap;
  cursor: default;
}


/* Логотипу и аккаунту разрешено выходить за общую границу — им важнее
   поместиться, чем держать вертикаль. Меню от этого получает больше места. */
.menu { max-width: min(700px, calc(100vw - 260px)); }
.menu__icon { left: 20px; }
.account { right: 20px; }

@media (max-width: 900px) {
  .menu__icon { left: 12px; }
  .account { right: 12px; }
}


/* ==========================================================================
   АККАУНТ В ШАПКЕ — одна разворачивающаяся панель

   Раньше это была пилюля с почтой плюс отдельное окно под ней.
   Между ними был зазор: курсор пересекал его, наведение терялось,
   и пункты то ловили клик, то нет. Теперь список — продолжение той же
   коробки, разрыву взяться неоткуда.
   ========================================================================== */

/* Прежние правила скругления рассчитывали на две сцепленные пилюли
   и делали правый край почты прямым. Панель круглая со всех сторон. */
.account__item:first-child,
.account__item:last-child,
.account__item:only-child {
  border-radius: 100px;
}

.account__card {
  background: #000000;
  color: #ffffff;
  border-radius: 23px;
  overflow: hidden;
  min-width: 210px;
}

.account__row {
  display: flex;
  align-items: center;
  height: 46px;
  padding: 0 22px;
  font: 500 15px/1 "Montserrat", sans-serif;
  letter-spacing: 0.02em;
  color: #ffffff;
  white-space: nowrap;
  transition: background 0.16s ease;
}

.account__row--email,
.account__row--balance { cursor: default; }

.account__row--balance { color: rgba(255, 255, 255, 0.62); }

.account__card a.account__row { color: #ffffff; }
.account__card a.account__row:hover { background: #2b2b2b; color: #ffffff; }

/* На чёрном тёмно-красный не читается, поэтому здесь красный светлее. */
.account__card a.account__row--exit { color: #e07070; }
.account__card a.account__row--exit:hover { background: #3a1e1e; color: #e07070; }

.account__sep {
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
  margin: 0 18px;
}

/* Список открывается сразу, а закрывается с задержкой: иначе
   до нижних пунктов не успеваешь довести курсор. */
.account__more {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease 0.4s;
}

.account:hover .account__more,
.account:focus-within .account__more {
  max-height: 260px;
  transition-delay: 0s;
}




@media (prefers-reduced-motion: reduce) {
  .account__more, .account__caret { transition: none; }
}


/* --- Панель аккаунта растёт вниз, подсказка лежит под ней ------------------

   Контейнер был флексом с align-items: center и высотой 45. Из-за этого
   подсказка вставала сбоку от почты, а не под ней, а панель при раскрытии
   росла в обе стороны от середины. Теперь это обычный блок: панель
   начинается сверху и разворачивается только вниз.

   Подсказка вынесена из потока и лежит ровно под свёрнутой пилюлей,
   слоем ниже — раскрытый список её просто накрывает. */

.account {
  display: block;
  height: auto;
  align-items: initial;
}

.account__card {
  position: relative;
  z-index: 2;
}



/* ==========================================================================
   ЧАСТЬ ЧЕТВЁРТАЯ. Галочка у почты и первый экран страницы проверки
   ========================================================================== */

/* --- Галочка вместо подписи «наведи на меня» ------------------------------
   Подпись объясняла словами то, что галочка показывает знаком: вниз —
   есть что развернуть, вверх — развёрнуто. Заодно ушла возня со слоями:
   перекрывать больше нечего. */

.account__row--email {
  justify-content: space-between;
  gap: 14px;
}

.account__mail {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account__caret {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.6);
  transition: transform 0.28s ease, color 0.16s ease;
}

.account__caret svg {
  display: block;
  width: 12px;
  height: 8px;
}

.account:hover .account__caret,
.account:focus-within .account__caret {
  transform: rotate(180deg);
  color: #ffffff;
}


/* --- Первый экран страницы проверки ---------------------------------------
   Слои фона наследуются от главной как есть. Здесь только раскладка:
   слово слева, Элис справа. */

.hero--alice {
  min-height: 100vh;
}

.alice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5vw;
  padding: 150px 0 70px;
}

.alice__word {
  flex: 1 1 460px;
  min-width: 0;
}

.alice__title {
  font: 600 clamp(38px, 5.4vw, 74px)/0.98 "Montserrat", sans-serif;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.alice__latin {
  font: 300 clamp(26px, 3.4vw, 46px)/1.1 "Montserrat", sans-serif;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 6px;
}

.alice__sub {
  max-width: 30ch;
  margin-top: 30px;
  font: 300 clamp(16px, 1.5vw, 21px)/1.6 "Merriweather", serif;
  color: rgba(255, 255, 255, 0.8);
}

.alice__figure {
  position: relative;
  flex: 0 1 44%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Платье у Элис тёмное, на чёрном оно пропадает и остаются только лицо
   и чулки. Пятно света за спиной возвращает силуэт. */
.alice__figure::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  width: 116%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.19), transparent 72%);
  pointer-events: none;
}

.alice__portrait {
  position: relative;
  width: min(100%, 460px);
  height: auto;
}

.alice__quote {
  position: relative;
  margin-top: 10px;
  text-align: center;
  font: 400 clamp(24px, 2.6vw, 36px)/1.15 "Caveat", cursive;
  color: #ffffff;
}

/* Узкий экран: колонки складываются, Элис уходит под текст. */
@media (max-width: 860px) {
  .alice {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
    padding: 140px 0 60px;
  }

  .alice__figure {
    align-self: center;
    flex: 0 0 auto;
    max-width: 340px;
  }
}


/* --- Кнопки страницы проверки ---------------------------------------------
   Были широкие прямоугольники с крупным кеглем. Теперь тот же набор,
   что у главной кнопки лендинга и у входа: пилюля, мелкая разрядка
   прописными, плавная заливка при наведении. */

.littlealice__button {
  border-radius: 100px;
  height: 60px;
  width: auto;
  min-width: 260px;
  padding: 0 38px;
  margin: 0;
  font: 500 13px/1 "Montserrat", sans-serif;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  background: #0a0a0a;
  color: #ffffff;
  transition: background 0.22s ease;
}

.littlealice__button:hover { background: #2b2b2b; }

.littlealice__container2 {
  gap: 16px;
  margin: 0 30px 20vh;
  flex-wrap: wrap;
}

@media (max-width: 620px) {
  .littlealice__button { min-width: 0; width: 100%; padding: 0 24px; }
}

/* Белая часть страницы начиналась вплотную к тёмному экрану:
   раньше зазор давал блок с Элис, теперь его нужно задать явно. */
.hero--alice { margin-bottom: 64px; }


/* ==========================================================================
   ЧАСТЬ ПЯТАЯ. Страница профиля

   Собрана по макету: заголовки стоят над блоками и набраны как разделы
   лендинга, содержимое лежит в светло-серых скруглённых рамках, списки
   прокручиваются внутри себя, а не тянут за собой всю страницу.
   ========================================================================== */

.profile {
  padding: 124px 6vw 62px;
}

.profile__head {
  display: flex;
  align-items: baseline;
  gap: 30px;
  flex-wrap: wrap;
  max-width: 1400px;
}

/* Рукописное начертание — то же, которым на сайте говорит Элис. */
.profile__title {
  margin: 0;
  font: 500 clamp(64px, 11vw, 156px)/0.9 "Caveat", cursive;
  letter-spacing: 0;
  text-transform: lowercase;
}

.profile__email {
  font: 500 clamp(17px, 1.9vw, 26px)/1.2 "Montserrat", sans-serif;
  letter-spacing: 0.01em;
  text-transform: lowercase;
  color: var(--smoke);
  overflow-wrap: anywhere;
}


/* --- Плашка ожидания оплаты ----------------------------------------------- */

.paying {
  margin-top: 40px;
  max-width: 1400px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 26px 30px 28px;
}

.paying[hidden] { display: none; }

.paying__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.paying__label {
  font: 900 10px/1 "Montserrat", sans-serif;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  animation: paying-fade 1.6s ease-in-out infinite;
}

.paying__text {
  font: 300 15px/1.6 "Merriweather", serif;
  color: var(--smoke);
  max-width: 46ch;
}

.paying__track {
  margin-top: 18px;
  height: 1px;
  background: var(--line);
  overflow: hidden;
}

.paying__bar {
  width: 25%;
  height: 1px;
  background: var(--ink);
  animation: paying-slide 1.9s linear infinite;
}

@keyframes paying-slide {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(300%); }
}

@keyframes paying-fade {
  0%, 100% { opacity: 0.35; }
  50%      { opacity: 1; }
}


/* --- Блок: заголовок сверху, содержимое в рамке ---------------------------- */

.pblock {
  margin-top: 62px;
  max-width: 1400px;
}

/* Тот же набор, что у разделов лендинга. */
.pblock__tag {
  font: 500 15px/1.2 "Montserrat", sans-serif;
  letter-spacing: 0.3em;
  color: var(--smoke);
  margin-bottom: 14px;
}

.pcard {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 26px 28px 28px;
}

.pcard__split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.pcard.pcard__split { padding: 28px 30px 32px; gap: 30px; }

/* Итоги под графиком стояли к нему вплотную: тот же отступ,
   что у разбивки по вердиктам в соседнем блоке. */
.chart + .pcard__split { margin-top: 30px; }

/* Дашборд и список делят блок ровно пополам. */
/* Высоту ряда задаёт дашборд, список подстраивается под него. */
.pgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  align-items: stretch;
}

.plabel {
  font: 900 10px/1 "Montserrat", sans-serif;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--smoke);
}

.plabel--small { font-size: 9px; letter-spacing: 0.16em; }

.pvalue {
  margin-top: 12px;
  font: 900 clamp(30px, 3.6vw, 52px)/0.95 "Montserrat", sans-serif;
  font-stretch: expanded;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}

/* Ноль во всю величину читается как обвинение, поэтому словами и мельче. */
.pvalue--text {
  font-size: clamp(17px, 1.7vw, 22px);
  letter-spacing: -0.02em;
  font-stretch: normal;
}

.psum {
  margin-top: 7px;
  font: 900 28px/1 "Montserrat", sans-serif;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}


/* --- Подсказка по наведению ----------------------------------------------- */

.tip {
  position: relative;
  display: inline-block;
  cursor: default;
}

.tip__bubble {
  position: absolute;
  top: calc(100% + 9px);
  left: 0;
  z-index: 9;
  background: var(--ink);
  color: #ffffff;
  border-radius: 14px;
  padding: 11px 16px;
  width: max-content;
  max-width: 280px;
  font: 500 12px/1.45 "Montserrat", sans-serif;
  letter-spacing: 0.02em;
  text-transform: none;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.tip:hover .tip__bubble,
.tip:focus-visible .tip__bubble {
  opacity: 1;
  transform: translateY(0);
}


/* --- Дашборд по дням ------------------------------------------------------- */

.chart {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
}

.chart__axis {
  height: 124px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  font: 900 9px/1 "Montserrat", sans-serif;
  letter-spacing: 0.08em;
  color: var(--smoke);
  font-variant-numeric: tabular-nums;
}

.chart__plot {
  position: relative;
  height: 124px;
}

.chart__grid {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.chart__grid div { height: 1px; background: #ececec; }
.chart__grid div:last-child { background: var(--ink); }

.chart__bars {
  position: relative;
  height: 100%;
  display: flex;
  align-items: flex-end;
  gap: 2px;
}

.chart__bar {
  flex: 1 1 0;
  background: var(--ink);
  border-radius: 2px 2px 0 0;
}

/* День без событий оставляет засечку: пропуск в работе — не обрыв данных. */
.chart__bar--empty { background: var(--line); }

.chart__days {
  margin-top: 8px;
  display: flex;
  gap: 2px;
}

.chart__day {
  flex: 1 1 0;
  text-align: center;
  font: 900 8px/1 "Montserrat", sans-serif;
  color: var(--smoke);
  font-variant-numeric: tabular-nums;
}

.split {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.split__row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.split__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.split__dot--human { background: var(--human); }
.split__dot--mixed { background: var(--mixed); }
.split__dot--ai    { background: var(--ai); }

.split__name {
  flex: 1 1 auto;
  font: 900 9px/1 "Montserrat", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--smoke);
}

.split__count {
  font: 900 17px/1 "Montserrat", sans-serif;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}


/* --- Список со своей прокруткой -------------------------------------------- */

/* height: 0 при min-height: 100% — приём, который не даёт длинному списку
   растягивать ряд. Содержимое в расчёт высоты не идёт, а сама коробка
   принимает высоту ячейки, то есть дашборда, и прокручивается внутри. */
.plist {
  height: 0;
  min-height: 100%;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 0 26px;
}

.scrollbox { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.scrollbox::-webkit-scrollbar { width: 6px; }
.scrollbox::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

.prow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  gap: 18px;
  padding: 19px 0;
  border-bottom: 1px solid #ececec;
  align-items: start;
}

.prow:last-child { border-bottom: 0; }

.prow__label {
  font: 300 16px/1.4 "Merriweather", serif;
  overflow-wrap: anywhere;
}

.prow__meta {
  margin-top: 6px;
  font: 900 9px/1.4 "Montserrat", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--smoke);
}

.prow__right { text-align: right; }

.prow__score {
  font: 900 19px/1 "Montserrat", sans-serif;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.prow__score--human { color: var(--human); }
.prow__score--mixed { color: var(--mixed); }
.prow__score--ai    { color: var(--ai); }

.prow__verdict {
  margin-top: 5px;
  font: 900 9px/1.4 "Montserrat", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--smoke);
}

.pempty {
  padding: 64px 0;
  font: 300 17px/1.7 "Merriweather", serif;
  color: var(--smoke);
}

.pempty a { text-decoration: underline; text-underline-offset: 5px; }


/* --- Строка аккаунта ------------------------------------------------------
   Не блок, а три слова в ряд. Подчёркивание выезжает слева направо — тот же
   приём и та же кривая, что у ссылок в подвале. Линия лежит внутри коробки
   элемента: снаружи её срезал бы край соседнего блока. */

/* Три пункта разложены по всей ширине: первый у левого края, последний
   у правого, промежутки между ними одинаковые. */
.acts {
  margin-top: 62px;
  max-width: 1400px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 46px;
  flex-wrap: wrap;
}

.acc {
  position: relative;
  display: inline-block;
  width: fit-content;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0 0 8px;
  font: 300 17px/1.3 "Merriweather", serif;
  color: var(--smoke);
  text-align: left;
  transition: color 0.28s ease;
}

.acc::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.acc:hover::after,
.acc:focus-visible::after { transform: scaleX(1); }

.acc--pass:hover, .acc--pass:focus-visible { color: var(--human); }
.acc--exit:hover, .acc--exit:focus-visible { color: var(--ai); }

.acc--kill { font-weight: 700; }
.acc--kill:hover, .acc--kill:focus-visible { color: #6b1a2b; }


/* --- Подтверждение удаления ------------------------------------------------ */

.kill {
  margin-top: 26px;
  max-width: 640px;
  border: 1px solid #6b1a2b;
  border-radius: 24px;
  padding: 24px 28px 26px;
}

.kill[hidden] { display: none; }

.kill__text {
  font: 300 15px/1.7 "Merriweather", serif;
  color: var(--ink);
}

.kill__buttons {
  display: flex;
  gap: 30px;
  margin-top: 18px;
}

.kill__yes,
.kill__no {
  background: none;
  border: 0;
  padding: 0 0 4px;
  cursor: pointer;
  font: 900 10px/1 "Montserrat", sans-serif;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.kill__yes { color: #6b1a2b; border-bottom: 1px solid #6b1a2b; }
.kill__no  { color: var(--smoke); }

.kill__done {
  margin-top: 26px;
  max-width: 640px;
  font: 300 15px/1.7 "Merriweather", serif;
  color: var(--smoke);
}

.kill__done[hidden] { display: none; }


/* --- Узкий экран ----------------------------------------------------------- */

@media (max-width: 900px) {
  .profile { padding-top: 150px; }
  .pgrid { grid-template-columns: minmax(0, 1fr); }
  /* В одну колонку тянуться не за чем: возвращаем обычную высоту. */
  .plist { height: auto; min-height: 0; max-height: 380px; }
  .acts { justify-content: flex-start; }
  .acts { gap: 26px; flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .acc::after, .tip__bubble, .paying__bar, .paying__label { transition: none; animation: none; }
}


/* --- Подтверждение удаления: слово руками ---------------------------------
   Кнопку можно нажать промахом мимо соседней. Набранное слово промахом
   не набирается, поэтому «удалить» разблокируется только им. */

.kill__text a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.kill__text a:hover { color: #6b1a2b; text-decoration-color: #6b1a2b; }

.kill__label {
  display: block;
  margin-top: 20px;
  font: 300 15px/1.6 "Merriweather", serif;
  color: var(--smoke);
}

.kill__label b { font-weight: 700; color: var(--ink); }

.kill__field {
  display: block;
  margin-top: 12px;
  width: 100%;
  max-width: 280px;
  height: 48px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 100px;
  outline: none;
  appearance: none;
  background: #ffffff;
  font: 300 16px/1 "Merriweather", serif;
  color: var(--ink);
  transition: border-color 0.22s ease;
}

.kill__field::placeholder { color: #c4c4c4; }
.kill__field:focus { border-color: #6b1a2b; }

/* Слово набрано: поле подтверждает это цветом, чтобы не гадать,
   почему кнопка всё ещё серая. */
.kill__field--ready { border-color: #6b1a2b; }

.kill__buttons { margin-top: 22px; }

.kill__yes,
.kill__no { text-transform: lowercase; }

.kill__yes:disabled {
  color: #c4c4c4;
  border-bottom-color: #e4e4e4;
  cursor: not-allowed;
}


/* --- Тёмная полоса с заголовком профиля ------------------------------------
   Слои фона наследуются от первого экрана главной как есть. Отличие одно:
   высота по содержимому, а не во весь экран — профиль рабочая страница,
   и гнать человека прокруткой к его же балансу незачем. */

/* Высота задана, а содержимое центрируется по вертикали самим .hero
   (он и так flex с justify-content: center). Отступ под шапку не нужен:
   меню — не полоса во всю ширину, а пилюля посередине, и заголовок при
   такой высоте до неё не достаёт — между ними остаётся семьдесят с
   лишним пикселей. */
.hero--profile {
  min-height: 380px;
}

.hero--profile .hero__body {
  padding: 0;
}

.hero--profile .profile__title {
  color: #ffffff;
}

.hero--profile .profile__email {
  color: rgba(255, 255, 255, 0.62);
}

/* Верхний отступ держала шапка, теперь его держит полоса. */
.profile {
  padding-top: 66px;
}

/* Панель аккаунта на тёмном была чёрной без края и сливалась с фоном.
   Тот же контур, что у пилюли меню в этой раскраске. */
.nav--over .account__card {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}


/* --- Строка аккаунта по центру ---------------------------------------------
   Отодвинута от содержимого сильнее: это последнее, что делают на
   странице, и стоять вплотную к покупкам ей незачем. */

.acts {
  margin-top: 104px;
  justify-content: center;
  gap: 52px;
}

.kill,
.kill__done {
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 900px) {
  .acts { justify-content: flex-start; margin-top: 74px; }
}


/* --- Выпадашка у пункта «продукты» -----------------------------------------
   Устроена как панель аккаунта: чёрная карточка, раскрывается по наведению
   сразу, а закрывается с задержкой — иначе до нижней строки не успеваешь
   довести курсор. */

.menu__nest {
  position: relative;
}

/* Прозрачная полоска сверху — мостик для курсора между пунктом и
   карточкой. Без него зазор разрывает наведение, и окно захлопывается
   на полпути. */
.menu__drop {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 9px;
  z-index: 1;
}

.menu__drop__card {
  background: #000000;
  border-radius: 23px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  overflow: hidden;
  min-width: 176px;
  max-height: 0;
  transition: max-height 0.28s ease 0.4s;
}

.menu__nest:hover .menu__drop__card,
.menu__nest:focus-within .menu__drop__card {
  max-height: 200px;
  transition-delay: 0s;
}

.menu__drop__row {
  display: flex;
  align-items: center;
  height: 46px;
  padding: 0 22px;
  font: 500 15px/1 "Montserrat", sans-serif;
  letter-spacing: 0.02em;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.16s ease;
}

.menu__drop__row:hover { background: #2b2b2b; color: #ffffff; }

.menu__drop__sep {
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
  margin: 0 18px;
}

/* На светлых страницах пилюля меню тоже чёрная, так что карточка
   выглядит одинаково везде — отдельной раскраски не нужно. */

@media (prefers-reduced-motion: reduce) {
  .menu__drop__card { transition: none; }
}

/* Узкий экран: карточка не должна вылезать за край окна. */
@media (max-width: 720px) {
  .menu__drop__card { min-width: 0; }
  .menu__drop__row { font-size: 13px; padding: 0 16px; height: 42px; }
}


/* --- Сообщения на входе и регистрации ---------------------------------------
   Стояли вплотную к кнопке и к ссылке под ней. Отступ даётся только
   заполненной плашке: пустая раздвигала бы форму постоянно, а появляется
   сообщение далеко не всегда.

   Заодно интерлиньяж: общий 0.85 рассчитан на одну строку, а «Откройте
   ссылку из письма, чтобы зарегистрироваться» в две строки слипалось. */

.join__container__form .register__error:not(:empty),
.join__container__form .register__success:not(:empty) {
  /* Снизу ноль: под сообщением идёт «Нет аккаунта» со своим отступом
     сверху, и два отступа складывались в полсотни пикселей. */
  margin: 26px 35px 0;
  line-height: 1.5;
  text-align: center;
}


/* --- Вход через Яндекс ID ---------------------------------------------------
   Сама кнопка — официальный SVG из конструктора Яндекса, вставленный
   картинкой целиком. Так её цвет, обводка, начертание и отступы остаются
   ровно такими, какими их задал Яндекс: менять их он запрещает.

   Наши стили касаются только того, что вокруг: разделителя и коробки под
   кнопкой. Размеры коробки — из документации: 260 на 56, скругление 28. */

.oauth {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 35px 34px;
}

.oauth[hidden] { display: none; }

.oauth__rule {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  margin-bottom: 22px;
  font: 500 11px/1 "Montserrat", sans-serif;
  letter-spacing: 0.2em;
  text-transform: lowercase;
  color: var(--smoke);
}

.oauth__rule::before,
.oauth__rule::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--line);
}

/* Коробка ровно под официальный файл: 260 на 56, скругление 28.
   Чёрный фон продублирован здесь же — если картинка почему-то не
   отдастся, на её месте будет пилюля с подписью, а не битый значок. */
.oauth__yandex {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 260px;
  max-width: 100%;
  height: 56px;
  border-radius: 28px;
  overflow: hidden;
  background: #000000;
  color: #ffffff;
  font: 500 15px/1.3 "Montserrat", sans-serif;
  text-align: center;
  text-decoration: none;
}

.oauth__yandex img {
  display: block;
  width: 260px;
  height: 56px;
  max-width: 100%;
}

/* Цвет и обводку трогать нельзя, поэтому при наведении только лёгкое
   затемнение всей кнопки целиком. */
.oauth__yandex:hover { opacity: 0.88; }

@media (prefers-reduced-motion: reduce) {
  .oauth__yandex { transition: none; }
}


/* --- Кнопка VK ID -----------------------------------------------------------
   Значения взяты из официального SDK ВК, а не подобраны на глаз:
   фон #0077FF, наведение #0071F2, нажатие #0069E1, текст белый, вес 500.
   При высоте 56 их же формулы дают кегль 17, логотип 28 и отступ 14.
   Логотип — файл из того же SDK.

   Скругление у ВК настраивается, поэтому 28 — не отсебятина: берём
   такое же, как у кнопки Яндекса выше, чтобы пара не разъезжалась. */

.oauth__button + .oauth__button { margin-top: 12px; }

.oauth__button[hidden] { display: none; }

.oauth__vk {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 260px;
  max-width: 100%;
  height: 56px;
  padding: 0 14px;
  border-radius: 28px;
  box-sizing: border-box;
  background: #0077FF;
  text-decoration: none;
  transition: background 0.2s ease;
}

.oauth__vk:hover  { background: #0071F2; opacity: 1; }
.oauth__vk:active { background: #0069E1; }

.oauth__vk__logo {
  display: block;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
}

/* Текст занимает остаток и центрируется в нём: так надпись стоит по
   середине кнопки, а не липнет к логотипу. Справа компенсируем ширину
   логотипа вместе с зазором. */
.oauth__vk__text {
  flex: 1 1 auto;
  margin-right: 40px;
  text-align: center;
  font-family: -apple-system, system-ui, "Helvetica Neue", Roboto, sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 1;
  color: #ffffff;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .oauth__vk { transition: none; }
}


/* --- Кнопки провайдеров под размер кнопки «войти» ---------------------------
   У кнопки входа высота 60, ширина calc(100% - 70px) и скругление 100.
   Контейнер .oauth уже отбит теми же 35 пикселями с боков, поэтому
   ширина 100% внутри него даёт ровно ту же полосу. */

.oauth { align-items: stretch; }

.oauth__button {
  width: 100%;
  height: 60px;
  border-radius: 100px;
  box-sizing: border-box;
}

/* Кнопку Яндекса растягивать нельзя — он запрещает менять содержимое и
   пропорции. Поэтому его файл лежит по центру в своём размере, а вокруг
   тот же чёрный, что и внутри самого файла: получается одна пилюля
   нужной ширины с нетронутым содержимым Яндекса посередине. */
.oauth__yandex {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  overflow: hidden;
}

.oauth__yandex img {
  width: 260px;
  height: 56px;
  max-width: 100%;
  flex: 0 0 auto;
}

/* У ВК кнопка собрана из частей, её можно тянуть свободно. При высоте 60
   их же формулы дают отступ 16, кегль 17 и логотип 28. */
.oauth__vk {
  width: 100%;
  height: 60px;
  padding: 0 16px;
  border-radius: 100px;
}

.oauth__vk__text {
  margin-right: 40px;
}


/* --- Отступы на странице входа ----------------------------------------------
   Между полем почты и подписью «Пароль» было 30, на регистрации между
   теми же местами — 10. Приводим к регистрации. */

.join__container__field { margin-bottom: 10px; }

/* Поля на входе делят один класс, поэтому правило выше сдвинуло бы и
   строку «Запомнить меня». Возвращаем ей прежние тридцать явно: соседние
   отступы схлопываются, поэтому нужно именно 30, а не 30 минус 10. */
.join__container__container { margin-top: 30px; }

/* «Нет аккаунта» отодвинуто от кнопки, а «или» под ним, наоборот,
   придвинуто. */
.join__container__container__container {
  margin-top: 30px;
  margin-bottom: 26px;
}


/* --- Высота кнопок на входе, регистрации и смене пароля ---------------------
   Было 60 у всех, стало 54. Переключатель «Вход / Регистрация» сверху
   убавлен на столько же — с 46 до 42, иначе он стал бы выше кнопок. */

.join__container__button,
.recovery_password__container__button,
.oauth__button,
.oauth__vk {
  height: 54px;
}

.switch { height: 42px; }

/* Файл кнопки Яндекса нарисован под высоту 56. Просто обрезать его нельзя,
   поэтому он ужимается целиком: высота по коробке, ширина сама — пропорции
   сохраняются, а их Яндекс менять и запрещает. */
.oauth__yandex img {
  height: 100%;
  width: auto;
}

/* У ВК при высоте 54 их же формулы дают отступ 13. */
.oauth__vk { padding: 0 13px; }


/* --- Мостик выпадашки не шире своего пункта ---------------------------------
   Прозрачная полоска между «продукты» и карточкой раньше повторяла ширину
   самой карточки — 331 пиксель против 110 у пункта. Свисающие края лежали
   под «главная» и «проверка», и окно открывалось, когда курсор проходил
   по ним снизу вверх.

   Теперь полоска ровно по ширине пункта, а карточка внутри центрируется
   и вылезает за неё уже раскрытой, когда ловить курсор и положено. */

.menu__drop {
  width: 100%;
  display: flex;
  justify-content: center;
}


/* --- Логотип вровень с меню -------------------------------------------------
   Был 51 при высоте меню 45: центры совпадали, но кругляш торчал на три
   пикселя сверху и снизу. */

.menu__icon {
  width: 45px;
  height: 45px;
  top: 10px;
}


/* --- Страница смены пароля -------------------------------------------------
   Блок короткий, поэтому висел вверху с большой пустотой под собой.
   Здесь он ставится по середине окна; на входе и регистрации формы
   длиннее, там прижатие кверху правильнее. */

.join--center {
  align-items: center;
  padding-bottom: 76px;
}


/* Заголовок для поисковика и экранного диктора там, где по макету
   видимого заголовка нет. Не display: none — так его пропустили бы и
   поисковик, и диктор; текст остаётся в потоке, но вынесен за экран. */
.offscreen {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}


/* --- Заголовки и подписи, оставшиеся без правил -----------------------------

   В начале файла стоит сброс h1…h6 до обычного текста, поэтому каждому
   заголовку нужно правило. Для .legal h2 оно было, для h1 — нет, и
   «Публичная оферта» набиралась шестнадцатым кеглем Times New Roman,
   неотличимо от абзаца.

   Заодно сам .legal не задавал начертание, и всё, что не абзац и не
   пункт списка, сваливалось на шрифт браузера по умолчанию. */

.legal {
  font-family: "Merriweather", Georgia, serif;
}

.legal h1 {
  font: 900 clamp(30px, 3.6vw, 46px)/1.1 "Montserrat", sans-serif;
  font-stretch: expanded;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

/* Подзаголовки третьего уровня появились вместе с полным текстом оферты
   и политики: раньше на страницах лежал сокращённый пересказ, где их
   просто не было. Без своего правила они попадали под тот же сброс
   h1…h6 и набирались как обычный абзац. */

.legal h3 {
  font: 800 15px/1.35 "Montserrat", sans-serif;
  letter-spacing: -0.01em;
  margin: 30px 0 10px;
}

/* Приложение к оферте — отдельный документ внутри страницы, поэтому
   отбивается сильнее обычного раздела. */

.legal__annex {
  margin-top: 84px !important;
}

.legal__annex-sub {
  font: 500 10px/1.6 "Montserrat", sans-serif !important;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--smoke);
  margin: -6px 0 0 !important;
}

.legal__updated {
  font: 500 10px/1 "Montserrat", sans-serif;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--smoke);
  margin-bottom: 34px;
}

/* Заголовок баннера о куках тоже оставался без правила и набирался
   шрифтом браузера рядом с Merriweather в соседней строке. */
.cookies__title {
  font: 900 10px/1 "Montserrat", sans-serif;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 8px;
}


/* ==========================================================================
   БУРГЕР: меню на телефонах
   ==========================================================================

   Меню и панель аккаунта позиционированы фиксированно и независимо друг
   от друга, поэтому обёртка .nav__panel на десктопе получает
   display: contents и на раскладку не влияет вообще. Ниже 900 та же
   обёртка становится выезжающей панелью, а её содержимое переводится в
   обычный поток.

   Панель фиксированная, поэтому сдвинутая за правый край она не создаёт
   прокрутки: фиксированные элементы не участвуют в области прокрутки. */

.burger { display: none; }

.nav__panel { display: contents; }


@media (max-width: 900px) {

  /* --- Кнопка ------------------------------------------------------------
     Повторяет логотип: те же 45 пикселей, тот же чёрный круг, тот же
     светлый контур. Логотип слева, кнопка справа — строка уравновешена. */

  .burger {
    position: fixed;
    top: 10px;
    right: 12px;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 45px;
    height: 45px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #000000;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .burger__line {
    display: block;
    width: 19px;
    height: 2px;
    border-radius: 2px;
    background: #ffffff;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.16s ease;
  }

  /* Открытая кнопка — крестик: крайние полоски сходятся к середине
     и разворачиваются, средняя гаснет. */

  .nav--open .burger__line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav--open .burger__line:nth-child(2) { opacity: 0; }
  .nav--open .burger__line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Логотип поднимается над панелью, иначе она его закрывает
     и в открытом меню не остаётся ничего фирменного. */

  .menu__icon { z-index: 1200; }


  /* --- Панель ------------------------------------------------------------ */

  .nav__panel {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1100;
    padding: 92px 22px 40px;
    background: #000000;
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.34s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0s linear 0.34s;
  }

  .nav--open .nav__panel {
    transform: none;
    visibility: visible;
    transition: transform 0.34s cubic-bezier(0.16, 1, 0.3, 1);
  }

  /* Пока панель открыта, страница под ней не прокручивается. */
  body.nav-locked { overflow: hidden; }


  /* --- Меню внутри панели ------------------------------------------------
     Пилюля разбирается обратно в обычный список: снимаем фиксированное
     положение, ширину, фон, скругление и центрирование. */

  .nav__panel .menu,
  .nav--over .nav__panel .menu {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: auto;
    max-width: none;
    height: auto;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    transform: none;
    overflow: visible;
  }

  .nav__panel .menu__list__flex,
  .nav--over .nav__panel .menu__list__flex {
    height: auto;
    padding: 19px 2px;
    font-size: 21px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: rgba(255, 255, 255, 0.62);
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .nav__panel .menu__list__flex:hover,
  .nav--over .nav__panel .menu__list__flex:hover {
    padding: 19px 2px;
    background: transparent;
    color: #ffffff;
  }

  .nav__panel .menu__list__active,
  .nav--over .nav__panel .menu__list__active {
    height: auto;
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.14);
  }


  /* --- Вложенный список продуктов ----------------------------------------
     На десктопе он раскрывается по наведению. Наведения на телефоне нет,
     поэтому строки просто показываются под пунктом с отступом. */

  .nav__panel .menu__nest { position: static; }

  .nav__panel .menu__drop {
    position: static;
    width: auto;
    transform: none;
    padding: 0;
    display: block;
  }

  .nav__panel .menu__drop__card {
    max-height: none;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    min-width: 0;
    transition: none;
  }

  .nav__panel .menu__drop__row {
    height: auto;
    padding: 14px 2px 14px 22px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.52);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .nav__panel .menu__drop__row:hover {
    background: transparent;
    color: #ffffff;
  }

  .nav__panel .menu__drop__sep { display: none; }


  /* --- Аккаунт внутри панели --------------------------------------------- */

  .nav__panel .account,
  .nav--over .nav__panel .account {
    position: static;
    display: block;
    height: auto;
    margin-top: 28px;
  }

  /* «Войти» — во всю ширину, как кнопка, а не как пункт строки. */

  .nav__panel .account__item--login,
  .nav--over .nav__panel .account__item--login {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    padding: 0;
    border-radius: 100px;
    background: #ffffff;
    color: #000000;
    box-shadow: none;
    border-bottom: 0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }

  .nav__panel .account__item--login:hover,
  .nav--over .nav__panel .account__item--login:hover {
    background: #e8e8e8;
    color: #000000;
  }

  /* Карточка вошедшего: список раскрыт всегда — наводить нечем,
     а прятать профиль и выход за ещё одним касанием незачем. */

  .nav__panel .account__card {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    min-width: 0;
  }

  .nav__panel .account__more {
    max-height: none;
    transition: none;
  }

  .nav__panel .account__caret { display: none; }

  .nav__panel .account__row {
    height: auto;
    padding: 17px 2px;
    font-size: 17px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .nav__panel .account__row--email {
    font-weight: 600;
    color: #ffffff;
  }

  .nav__panel .account__sep { display: none; }


  /* Второй строки в шапке больше нет — первый экран возвращается
     к обычному отступу. */

  .hero__body { padding-top: 120px; }
}


/* --- Подвал на телефонах --------------------------------------------------

   Мобильных правил у подвала не было вовсе: три колонки стояли в ряд
   через gap: 10vw, отступы по бокам держались 35 пикселей, заголовки
   набирались тридцатым кеглем. На экране в 375 пикселей содержимое
   уезжало вправо до 685 и тянуло за собой всю страницу — это и была
   настоящая причина горизонтальной прокрутки, а вовсе не меню. */

@media (max-width: 900px) {
  .footer {
    height: auto;
    padding: 60px 22px 0;
  }

  .footer__preamble {
    height: auto;
    margin-bottom: 0;
    font-size: 21px;
    line-height: 1.5;
  }

  .footer__sep { margin: 34px 0 30px; }

  .footer__rows {
    flex-direction: column;
    gap: 34px;
  }

  /* Ширина третьей колонки задана прямо в разметке (style="width: 25vw"),
     и перебить её из таблицы стилей можно только так. */
  .footer__rows > * { width: auto !important; }

  .footer__cols { font-size: 16px; line-height: 2.2; }

  .footer__title { font-size: 21px; line-height: 2; }

  .footer__contacts {
    height: auto;
    font-size: 19px;
    line-height: 1.8;
  }

  .footer__information { font-size: 14px; }

  .footer__le {
    height: auto;
    margin: 34px 0 0;
    font-size: 13px;
    line-height: 1.9;
  }
}


/* --- Строка «запомнить меня / забыли пароль» на телефонах ------------------

   Зазор между ними задан жёстко: gap: 201px. Число подобрано под карточку
   шириной 600 пикселей, где оно разводит подписи по краям. На экране в 375
   тот же зазор выталкивал «забыли пароль» за правый край — страница ехала
   вбок до 467 пикселей. Разводим по краям тем, для чего это и есть. */

@media (max-width: 900px) {
  .join__container__container {
    gap: 12px;
    justify-content: space-between;
  }

  .join__container__label,
  .join__container__container__label,
  .join__container__field { margin-left: 22px; margin-right: 22px; }
}


/* --- Подпись над заголовком на телефонах -----------------------------------

   Разрядка 0.28em при кегле 13 даёт по три с половиной пикселя между
   буквами. На широком экране фраза «Leihman Industries проверит ваши
   файлы на» стоит одной строкой и разрядка читается как приём. На 375
   она расползается на две строки с повисшим «на» в конце, а плашка
   «ИИ-контент» уезжает на третью и выглядит оторванной. Поджимаем. */

@media (max-width: 620px) {
  .hero__eyebrow {
    letter-spacing: 0.12em;
    gap: 10px;
  }
}


/* Тем, кто просил меньше движения, панель появляется без выезда. */

@media (prefers-reduced-motion: reduce) {
  .nav__panel,
  .burger__line { transition: none; }
}
