@tailwind base;
@tailwind components;
@tailwind utilities;
/*
 * Лендинг платформы (layouts/landing). Иллюстрация — изометрическая платформа с модулями (LandingHelper).
 * Цвета — синий и красный Партии на белом, шрифт Golos Text.
 * Все правила — внутри body.landing: файл попадает в общий application.css (require_tree).
 */

body.landing {
  --blue: #1f3f96;
  --ink: #0e1f4f;
  --red: #d52b1e;
  --paper: #ffffff;
  --mist: #eef2fa;
  --muted: #56627f;
  --line: #d5ddef;

  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Golos Text", "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.landing *, .landing *::before, .landing *::after { box-sizing: border-box; }
.landing h1, .landing h2, .landing h3, .landing p, .landing ul, .landing ol { margin: 0; padding: 0; }
.landing ul, .landing ol { list-style: none; }
.landing a { color: inherit; }
.landing a:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.landing .l-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ----- Значки модулей */
.landing .l-module__icon { display: block; width: 56px; height: 56px; padding: 13px; border-radius: 14px; background: var(--paper); box-shadow: 0 1px 0 var(--line); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.landing .l-icon-b { stroke: var(--blue); }
.landing .l-icon-r { stroke: var(--red); }

/* ----- Шапка */
.landing .l-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 76px; }
.landing .l-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink); }
.landing .l-brand__logo { height: 30px; width: auto; }

/* ----- Кнопки и ссылки */
.landing .l-button {
  display: inline-block;
  padding: 15px 26px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.2;
  text-decoration: none;
  transition: background .15s ease;
}
.landing .l-button:hover { background: var(--ink); }
.landing .l-button--small { padding: 10px 18px; font-size: 15px; }
.landing .l-link { color: var(--blue); font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.landing .l-link:hover { color: var(--ink); }

/* ----- Первый экран */
.landing .l-hero { padding: 40px 0 88px; overflow: hidden; }
.landing .l-hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 40px; align-items: center; }
.landing h1 {
  font-size: clamp(34px, 5.4vw, 68px);
  line-height: .98;
  font-weight: 800;
  letter-spacing: -.035em;
  color: var(--blue);
  hyphens: manual;
}
.landing .l-hero__org { margin-top: 24px; max-width: 34ch; font-size: 21px; line-height: 1.35; font-weight: 600; color: var(--ink); }
.landing .l-hero__lead { margin-top: 20px; max-width: 46ch; color: var(--muted); }
.landing .l-hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.landing .l-illustration { display: block; width: 100%; height: auto; overflow: visible; }

/* Модули опускаются на платформу по очереди — один раз при загрузке */
@media (prefers-reduced-motion: no-preference) {
  .landing .l-ill-module { animation: l-drop .6s cubic-bezier(.2, .8, .3, 1) both; animation-delay: calc(var(--i) * 110ms + 200ms); }
}
@keyframes l-drop {
  from { opacity: 0; transform: translateY(-36px); }
  to { opacity: 1; transform: none; }
}

/* ----- Модули */
.landing .l-modules { background: var(--mist); padding: 88px 0 96px; }
.landing h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.landing .l-section-lead { margin-top: 14px; max-width: 52ch; color: var(--muted); }
.landing .l-modules__list { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 48px; }
.landing .l-module h3 { margin-top: 18px; font-size: 20px; line-height: 1.3; font-weight: 700; color: var(--ink); }
.landing .l-module p { margin-top: 10px; font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 40ch; }

/* ----- Как начать */
.landing .l-start { padding: 96px 0 104px; }
.landing .l-start__inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.landing .l-start .l-button { margin-top: 32px; }
.landing .l-steps { display: grid; gap: 36px; }
.landing .l-step { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; align-items: start; }
.landing .l-step__number { font-size: 56px; line-height: .9; font-weight: 800; color: var(--blue); letter-spacing: -.04em; }
.landing .l-step h3 { font-size: 20px; line-height: 1.3; font-weight: 700; }
.landing .l-step p { margin-top: 6px; font-size: 16px; color: var(--muted); max-width: 48ch; }

/* ----- Подвал */
.landing .l-footer { background: var(--ink); color: #dfe6f7; }
.landing .l-footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; padding-top: 40px; padding-bottom: 48px; font-size: 15px; line-height: 1.6; }
.landing .l-footer a { color: #fff; text-underline-offset: 4px; }
.landing .l-footer__year { color: #8fa5e0; }

/* ----- Узкие экраны */
@media (max-width: 960px) {
  .landing .l-hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .landing .l-hero__art { max-width: 520px; }
  .landing .l-modules__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .landing .l-start__inner { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 600px) {
  body.landing { font-size: 17px; }
  .landing .l-wrap { padding: 0 16px; }
  .landing .l-header__inner { height: 64px; }
  .landing .l-brand span { display: none; }
  .landing .l-hero { padding: 24px 0 56px; }
  .landing .l-hero__org { font-size: 18px; }
  .landing .l-hero__art { max-width: none; margin: 0 -8px; }
  .landing .l-modules { padding: 64px 0 72px; }
  .landing .l-modules__list { grid-template-columns: 1fr; gap: 40px; margin-top: 40px; }
  .landing .l-start { padding: 64px 0 72px; }
  .landing .l-step { grid-template-columns: 48px minmax(0, 1fr); gap: 14px; }
  .landing .l-step__number { font-size: 44px; }
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

.grow-wrap {
  display: grid;
  position: relative;
}

.grow-wrap::after {
  content: attr(data-replicated-value) " ";
  white-space: pre-wrap;
  visibility: hidden;
  grid-area: 1 / 1 / 2 / 2;
  font: inherit;
  line-height: inherit;
  padding: 0.5rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
}

.grow-wrap > textarea {
  grid-area: 1 / 1 / 2 / 2;
  resize: none;
  overflow: hidden;
  font: inherit;
  line-height: inherit;
}
