/* The front page, new (owner 2026-11-19 «переделать полностью новый вход на сайт, новые скрины»).
   The product's own palette and face: paper and white, ink, the graphite of the app's menu as the
   desk the screens lie on, the blue only on the one action, green only where money is paid. */
:root {
  --paper: #F8F8F8; --white: #FFFFFF; --ink: 26 26 26; --graphite: #21222C; --signal: #1B50FF; --signal-hover: #1442D8; --link: #1B50FF; --ledger: #1E7B45; --mark: #21222C;
  --text: rgb(var(--ink)); --muted: rgb(var(--ink) / .68); --faint: rgb(var(--ink) / .5); --line: rgb(var(--ink) / .08);
  --bar: rgb(248 248 248 / .92); --shot-shadow: 0 18px 48px rgb(26 26 26 / .08);
  --font: "DM Sans", system-ui, sans-serif;
  color-scheme: light;
}
/* Dark, as the portal draws it (the design system's dark tokens): the page #1A1A1A, white text at the
   same opacities, the soft blue for the button and the light one for links. The screenshots stay the
   light screens they are. Picked by home.js (the portal's own choice, else the computer's); without
   the script the computer's setting decides. */
:root[data-theme="dark"] {
  --paper: #1A1A1A; --white: #202020; --ink: 255 255 255; --graphite: #121317; --signal: #4560C4; --signal-hover: #3A53AE; --link: #688BFF; --mark: #33343D;
  --muted: rgb(var(--ink) / .7); --faint: rgb(var(--ink) / .52); --line: rgb(var(--ink) / .09);
  --bar: rgb(26 26 26 / .9); --shot-shadow: 0 18px 48px rgb(0 0 0 / .45);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1A1A1A; --white: #202020; --ink: 255 255 255; --graphite: #121317; --signal: #4560C4; --signal-hover: #3A53AE; --link: #688BFF; --mark: #33343D;
    --muted: rgb(var(--ink) / .7); --faint: rgb(var(--ink) / .52); --line: rgb(var(--ink) / .09);
    --bar: rgb(26 26 26 / .9); --shot-shadow: 0 18px 48px rgb(0 0 0 / .45);
    color-scheme: dark;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 17px/28px var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; padding: 8px 14px; background: var(--white); color: var(--text); border-radius: 8px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 32px; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }

/* Links and the one button kind */
.link { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.link:hover { text-decoration-thickness: 2px; }
.btn { display: inline-flex; align-items: center; height: 40px; padding: 0 20px; border-radius: 999px; background: var(--signal); color: #fff; text-decoration: none; font-weight: 500; font-size: 15px; }
.btn:hover { background: var(--signal-hover); }
.btn-lg { height: 52px; padding: 0 28px; font-size: 16px; }
.small { color: var(--faint); font-size: 15px; line-height: 24px; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: var(--bar); backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 500; font-size: 16px; }
.mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--mark); color: #fff; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav a:not(.btn) { text-decoration: none; color: var(--muted); }
.nav a:not(.btn):hover { color: var(--text); }

/* Hero: the headline across, the story beside it, then the desk with the Work screen on it. */
.hero { padding-top: 88px; }
.hero-row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: end; }
.hero h1 { font-size: 64px; line-height: 68px; letter-spacing: -0.025em; max-width: 13ch; }
.lede { color: var(--muted); max-width: 46ch; }
.cta { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 28px; margin: 28px 0 14px; }
.desk { margin: 72px 0 0; background: var(--graphite); padding: 56px 0 0; }
.desk-inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.desk-inner img { border-radius: 14px 14px 0 0; box-shadow: 0 -1px 0 rgb(255 255 255 / .06), 0 24px 60px rgb(0 0 0 / .35); }
.desk figcaption { color: rgb(255 255 255 / .62); font-size: 15px; line-height: 24px; padding-top: 18px; padding-bottom: 22px; background: var(--graphite); }

/* The week: each step a row - what happens on the left, the screen it happens on on the right. */
.week { padding: 112px 0 40px; }
.week h2, .who h2, .end h2 { font-size: 40px; line-height: 48px; letter-spacing: -0.02em; max-width: 22ch; }
.intro { color: var(--muted); max-width: 60ch; margin-top: 16px; }
.step { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; align-items: start; padding: 72px 0; border-top: 1px solid var(--line); margin-top: 64px; }
.step + .step { margin-top: 0; }
.step-text { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 14px; }
.step h3 { font-size: 24px; line-height: 32px; font-weight: 500; letter-spacing: -0.01em; }
.step p { color: var(--muted); }
.shot { margin: 0; border-radius: 14px; overflow: hidden; background: var(--white); box-shadow: 0 0 0 1px var(--line), var(--shot-shadow); }

/* Who sees what: a real table, the owner's column last and plain. */
.who { padding: 96px 0; background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.table-wrap { margin-top: 36px; overflow-x: auto; }
.who table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 24px; min-width: 720px; }
.who th, .who td { text-align: left; padding: 16px 18px 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.who thead th { color: var(--faint); font-weight: 400; font-size: 14px; }
.who tbody th { font-weight: 400; width: 38%; }
.who td { color: var(--muted); }
.who td:last-child { color: var(--text); }

/* Brokers, price, the letter, questions: the title in its own column, the words beside it. */
.brokers, .price, .about, .faq { padding: 96px 0; }
.price, .faq { border-top: 1px solid var(--line); }
.two { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; }
.two h2 { font-size: 32px; line-height: 40px; letter-spacing: -0.02em; }
.two > div { display: flex; flex-direction: column; gap: 18px; max-width: 66ch; }
.two > div > p:not(.small):not(.sign) { color: var(--muted); }
.plans { width: 100%; border-collapse: collapse; margin: 8px 0; }
.plans th, .plans td { text-align: left; padding: 18px 16px 18px 0; border-top: 1px solid var(--line); vertical-align: baseline; }
.plans tr:last-child th, .plans tr:last-child td { border-bottom: 1px solid var(--line); }
.plans th { font-weight: 400; white-space: nowrap; }
.plans .amt { font-size: 28px; line-height: 32px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.plans .amt span { font-size: 15px; color: var(--faint); }
.plans td:last-child { color: var(--muted); font-size: 15px; line-height: 24px; }
.about { background: var(--white); border-top: 1px solid var(--line); }
.letter p { font-size: 19px; line-height: 32px; }
.sign { margin-top: 8px; font-weight: 500; }
.sign span { font-weight: 400; color: var(--faint); font-size: 15px; }
.qa details { border-top: 1px solid var(--line); }
.qa details:last-child { border-bottom: 1px solid var(--line); }
.qa summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-size: 18px; line-height: 28px; position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; position: absolute; right: 6px; top: 30px; width: 9px; height: 9px; border-right: 1.5px solid var(--faint); border-bottom: 1.5px solid var(--faint); transform: rotate(45deg); }
.qa details[open] summary::after { transform: rotate(-135deg); top: 34px; }
.qa details p { color: var(--muted); padding: 0 40px 22px 0; }

.end { padding: 112px 0; background: var(--graphite); color: #fff; }
.end p { color: rgb(255 255 255 / .7); margin-top: 14px; }
.end .link { color: #9DB4FF; }

.foot { background: var(--graphite); color: rgb(255 255 255 / .7); border-top: 1px solid rgb(255 255 255 / .08); padding: 56px 0 28px; font-size: 15px; line-height: 24px; }
.foot-row { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr); gap: 40px; }
.foot h3 { font-size: 15px; color: #fff; font-weight: 500; margin-bottom: 10px; }
.foot a { display: block; text-decoration: none; padding: 3px 0; }
.foot a:hover { color: #fff; }
.foot-about p { margin-top: 14px; max-width: 52ch; }
.brand-foot { color: #fff; }
.brand-foot .mark { width: 28px; height: 28px; background: rgb(255 255 255 / .12); }
.copy { margin-top: 40px; color: rgb(255 255 255 / .45); font-size: 14px; }

@media (max-width: 960px) {
  .hero-row, .step, .two, .foot-row { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero h1 { font-size: 48px; line-height: 52px; }
  .step-text { position: static; }
  .step { padding: 48px 0; }
}
@media (max-width: 600px) {
  .wrap, .desk-inner { padding: 0 16px; }
  .nav { gap: 16px; }
  .nav a { white-space: nowrap; }
  .nav a:not(.btn) { display: none; }
  .nav a[href="/login"] { display: inline; }
  .nav .btn { height: 36px; padding: 0 16px; font-size: 14px; }
  .top .brand > span:last-child { display: none; }
  .hero { padding-top: 48px; }
  .hero h1 { font-size: 38px; line-height: 42px; }
  .week h2, .who h2, .end h2 { font-size: 30px; line-height: 36px; }
  .desk { margin-top: 48px; padding-top: 28px; }
  .plans .amt { font-size: 22px; }
  /* Who sees what: on a phone each line is its name, then the four roles under it, two a row. */
  .who table { min-width: 0; }
  .who thead { display: none; }
  .who table, .who tbody, .who tr { display: block; }
  .who tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
  .who tbody th { grid-column: 1 / -1; width: auto; padding: 0 0 4px; border: 0; font-weight: 500; }
  .who td { padding: 0; border: 0; font-size: 15px; line-height: 22px; }
  .who td::before { content: attr(data-role); display: block; color: var(--faint); font-size: 13px; line-height: 18px; }
  /* The three plans one under another: the size, the price, what comes with it. */
  .plans, .plans tbody, .plans tr, .plans th, .plans td { display: block; }
  .plans tr { padding: 16px 0; border-top: 1px solid var(--line); }
  .plans tr:last-child { border-bottom: 1px solid var(--line); }
  .plans th, .plans td, .plans tr:last-child th, .plans tr:last-child td { border: 0; padding: 2px 0; white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* The TDP logo tile in the mark (2026-11-28): the image fills it; a rounded square, not a circle. */
.mark { overflow: hidden; border-radius: 9px; background: none; }
.mark img { display: block; width: 100%; height: 100%; }
.brand-foot .mark { background: none; }
/* The TDP letters in place of a mark (owner 2026-11-28: «везде буквы TDP, иконку только для приложения»): blue on the
   light page, white on the dark one. */
.mark.logo { width: auto; height: 28px; border-radius: 0; background: none; overflow: visible; }
.mark.logo img { width: auto; height: 28px; }
.brand-foot .mark.logo, .brand-foot .mark.logo img { height: 22px; }
.mark.logo .on-dark { display: none; }
:root[data-theme="dark"] .mark.logo .on-light { display: none; }
:root[data-theme="dark"] .mark.logo .on-dark { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mark.logo .on-light { display: none; } :root:not([data-theme="light"]) .mark.logo .on-dark { display: block; } }
