/* Экран выбора кабинета — образец: доска «С1. Единый сайт — выбор кабинета»
   и экран «1. Выбор кабинета» мобильного приложения. */
:root {
  --green: #015640;
  --mint: #9fe3c6;
  --on-green: #cfe3da;
  --canvas: #f0eee8;
  --card: #ffffff;
  --ink: #16171a;
  --muted: #4f535a;
  --orange: #de5102;
  --hair: #d3d1cc;
  --shadow: 2px 3px 6px rgba(58, 48, 30, 0.07), 4px 8px 20px rgba(58, 48, 30, 0.06);
}
/* Inter из темы входа Keycloak: те же подмножества, переменная насыщенность. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/inter-cyrillic-wght-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/inter-cyrillic-ext-wght-normal.woff2') format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/inter-latin-ext-wght-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--canvas);
}
a { color: inherit; text-decoration: none; }

.page { min-height: 100vh; display: flex; }

.hero {
  position: relative;
  overflow: hidden;
  width: 600px;
  flex-shrink: 0;
  background: var(--green);
  color: #fff;
  padding: 44px 56px;
  display: flex;
  flex-direction: column;
}
.decor { position: absolute; right: -250px; bottom: -60px; width: 560px; height: auto; pointer-events: none; }
.plate {
  position: relative;
  align-self: flex-start;
  display: inline-flex;
  padding: 14px 20px;
  border-radius: 22px;
  background: var(--canvas);
  box-shadow: 4px 8px 24px rgba(0, 0, 0, 0.18);
}
.plate svg { height: 40px; width: auto; display: block; overflow: visible; }
.pitch { position: relative; margin: auto 0; display: flex; flex-direction: column; gap: 18px; }
h1 { margin: 0; font-size: 56px; line-height: 1.02; font-weight: 900; letter-spacing: -0.045em; }
h1 span { color: var(--mint); }
.lead { margin: 0; font-size: 18px; line-height: 1.5; color: var(--on-green); max-width: 420px; }

.side { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 32px 56px; gap: 24px; }
.lang { align-self: flex-end; display: flex; gap: 4px; }
.lang button {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}
.lang button[aria-pressed='true'] { background: var(--ink); color: #fff; font-weight: 700; }
.choose { margin: auto 0; width: 100%; max-width: 620px; align-self: center; display: flex; flex-direction: column; gap: 16px; }
h2 { margin: 0 0 6px; font-size: 32px; font-weight: 900; letter-spacing: -0.03em; }
.card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px 28px;
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 4px 10px 28px rgba(58, 48, 30, 0.14); }
.card:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.card-head { display: flex; align-items: center; gap: 18px; }
.badge {
  width: 64px; height: 64px; flex-shrink: 0;
  border-radius: 20px; background: var(--green);
  display: flex; align-items: center; justify-content: center;
}
.names { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.name { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.go {
  width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%;
  background: var(--green); display: flex; align-items: center; justify-content: center;
}

/* Телефон и узкий планшет — как экран приложения: зелёная шапка сверху,
   выбор на светлом листе снизу. */
@media (max-width: 900px) {
  .page { flex-direction: column; }
  .hero { width: auto; padding: 32px 20px 72px; gap: 28px; }
  /* Внизу справа: сверху хвост «Q» ложился под заголовок и спорил с ним. */
  .decor { right: -230px; bottom: -90px; width: 380px; }
  .plate { padding: 12px 16px; }
  .plate svg { height: 32px; }
  h1 { font-size: 40px; }
  .lead { font-size: 16px; }
  .side {
    position: relative;
    margin-top: -40px;
    border-radius: 32px 32px 0 0;
    background: var(--canvas);
    padding: 26px 16px 28px;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.22);
    gap: 14px;
  }
  .lang { order: 3; align-self: center; }
  .choose { margin: 0; gap: 12px; }
  h2 { font-size: 24px; margin: 0 8px 2px; }
  .card { padding: 18px; gap: 14px; border-radius: 24px; }
  .card-head { gap: 14px; }
  .badge { width: 54px; height: 54px; border-radius: 18px; }
  .name { font-size: 18px; }
  .go { width: 40px; height: 40px; }
}
@keyframes qo-l{0%{transform:translate(-90px,0);opacity:0}10%{opacity:1}30%{transform:translate(5px,0)}36%,100%{transform:translate(0,0);opacity:1}}
@keyframes qo-r{0%{transform:translate(90px,0);opacity:0}10%{opacity:1}30%{transform:translate(-5px,0)}36%,100%{transform:translate(0,0);opacity:1}}
@keyframes qo-hl{0%{transform:translate(180px,0)}30%{transform:translate(-10px,0)}36%,100%{transform:translate(0,0)}}
@keyframes qo-hr{0%{transform:translate(-180px,0)}30%{transform:translate(10px,0)}36%,100%{transform:translate(0,0)}}
@keyframes qo-t{0%,40%{transform:translate(113px,134px);opacity:0}44%{opacity:1}54%{transform:translate(-4px,-5px)}58%,100%{transform:translate(0,0);opacity:1}}
@keyframes qo-ht{0%,40%{transform:translate(113px,134px)}54%{transform:translate(-4px,-5px)}58%,100%{transform:translate(0,0)}}
@keyframes qo-w{0%,52%{opacity:0;transform:translate(-14px,0)}68%,100%{opacity:1;transform:translate(0,0)}}
@keyframes qo-loop{0%,90%{opacity:1}97%,100%{opacity:0}}
.qo-anim .qo-l{animation:qo-l 2.8s cubic-bezier(.2,.8,.2,1) both}
.qo-anim .qo-r{animation:qo-r 2.8s cubic-bezier(.2,.8,.2,1) both}
.qo-anim .qo-hl{animation:qo-hl 2.8s cubic-bezier(.2,.8,.2,1) both}
.qo-anim .qo-hr{animation:qo-hr 2.8s cubic-bezier(.2,.8,.2,1) both}
.qo-anim .qo-t{animation:qo-t 2.8s cubic-bezier(.2,.8,.2,1) both}
.qo-anim .qo-ht{animation:qo-ht 2.8s cubic-bezier(.2,.8,.2,1) both}
.qo-anim .qo-w{animation:qo-w 2.8s ease-out both}
.qo-anim-loop *{animation-duration:3.6s !important;animation-iteration-count:infinite !important}
.qo-anim-loop .qo-all{animation:qo-loop 3.6s linear infinite}
@media (prefers-reduced-motion: reduce){.qo-anim *{animation:none !important}}
@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
}

/* Самоподключение поставщика — ссылкой под выбором кабинета: она для новичков, а не для тех, кто уже работает. */
.signup-row { display: flex; align-items: center; gap: 12px; margin: 6px 4px 0; }
.signup { font-weight: 600; color: inherit; }
/* Пробный период — главное для нового продавца, поэтому плашкой цвета бренда. Оранжевый темнее --orange: белому тексту нужен контраст 4.5:1. */
.free {
  display: inline-block; margin-left: 4px; padding: 2px 10px; border-radius: 999px;
  background: #c44700; color: #fff; white-space: nowrap; text-decoration: none;
}
/* Стрелка вниз — к кнопке пробного периода в рассказе о продукте ниже. */
.to-trial {
  width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%;
  background: var(--green); display: flex; align-items: center; justify-content: center;
}
.to-trial:hover { filter: brightness(1.15); }
.to-trial:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
html { scroll-behavior: smooth; }
/* Кнопка встаёт не под самый край окна, а ближе к середине. */
#trial { scroll-margin-top: 35vh; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Ссылка «Подробнее» в зелёной шапке ведёт к блоку о продукте ниже. */
.more { position: relative; align-self: flex-start; color: var(--mint); font-weight: 600; font-size: 15px; }
.more:hover { text-decoration: underline; }

/* Зелёная колонка стоит на месте, правая прокручивается: рассказ о продукте —
   продолжение той же колонки, что и «Кто вы?», а не отдельная лента под ней. */
.hero { position: sticky; top: 0; height: 100vh; }
.screen { min-height: calc(100vh - 64px); display: flex; flex-direction: column; gap: 24px; }

.about {
  width: 100%; max-width: 620px; align-self: center;
  padding: 72px 0 40px;
  display: flex; flex-direction: column; gap: 28px;
}
.points { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair); }
.points li { display: flex; gap: 18px; padding: 22px 4px; border-bottom: 1px solid var(--hair); }
.dot {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 14px; background: var(--green);
  display: flex; align-items: center; justify-content: center;
}
.point { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding-top: 2px; }
.point b { font-size: 18px; font-weight: 800; letter-spacing: -0.015em; }
.point span { font-size: 15px; line-height: 1.55; color: var(--muted); max-width: 52ch; }
/* Снимок экрана под пунктом: настоящий интерфейс, личные данные заменены. */
.shot {
  display: block; width: 100%; height: auto; margin-top: 12px;
  border-radius: 14px; border: 1px solid var(--hair);
  background: var(--card); box-shadow: var(--shadow);
}
.actions { display: flex; flex-direction: column; gap: 12px; }
.btn {
  min-height: 52px; padding: 12px 26px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  font-weight: 700; font-size: 16px;
  border: 2px solid var(--green); color: var(--green);
}
.btn.primary { background: var(--green); color: #fff; }
.btn:hover { background: var(--green); color: #fff; }
.btn.primary:hover { filter: brightness(1.12); }
.btn:focus-visible, .more:focus-visible, .signup:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.btn[hidden] { display: none; }

@media (max-width: 900px) {
  .hero { position: relative; height: auto; }
  .screen { min-height: 0; gap: 14px; }
  .about { padding: 36px 4px 8px; gap: 20px; }
  .about h2 { margin: 0; }
  .points li { gap: 14px; padding: 18px 0; }
  .dot { width: 40px; height: 40px; border-radius: 13px; }
  .point b { font-size: 16px; }
}

/* Тарифы: три карточки в ряд, на телефоне — столбиком. */
.tariffs { display: flex; flex-direction: column; }
.tariffs[hidden] { display: none; }
.tariffs h2 { margin: 0; }
.tariff-cards { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.tariff { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); }
.tariff b { font-size: 18px; }
.tariff-price { font-size: 20px; font-weight: 700; color: var(--green); }
.tariff ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--muted, inherit); }
.tariff-addon, .tariff-note { margin: 12px 0 0; font-size: 14px; color: var(--muted, inherit); }
