/* TimeTAR — оформление сайта поверх Bootstrap 6 */
:root {
  --tt-blue: #2f6fb8;
  --tt-blue-dark: #1f5797;
  --tt-navy: #173c69;
  --tt-amber: #f2a93b;
  --tt-teal: #147d70;
  --tt-green: #1f843e;
  --tt-tint: #f3f6fb;
  --tt-line: #dce2ea;
  --tt-text-2: #4d5b6c;
  --bs-primary-bg: var(--tt-blue);
  --bs-primary-base: var(--tt-blue);
  --bs-font-sans-serif: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  scroll-padding-top: 5rem;
}
[data-bs-theme=dark] {
  --tt-blue: #5d9ce6;
  --tt-tint: #1b2027;
  --tt-line: #343c47;
  --tt-text-2: #a9b4c2;
  --bs-primary-bg: #3578c8;
  --bs-primary-base: #3578c8;
}
body { font-family: var(--bs-font-sans-serif); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { letter-spacing: -0.01em; }

.skip-link { position: absolute; left: -999px; top: 0; z-index: 2000; padding: .5rem 1rem; background: var(--tt-blue); color: #fff; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* Шапка */
.site-header { border-bottom: 1px solid var(--tt-line); }
.site-header .container { min-height: 3.75rem; }
.brand-name { font-weight: 700; font-size: 1.35rem; color: var(--bs-fg-body); letter-spacing: -0.02em; }
.brand-name span { color: var(--tt-blue); }
.navbar-brand { text-decoration: none; }
.site-nav { display: flex; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.site-nav .nav-link { padding: .5rem .75rem; border-radius: .5rem; color: var(--tt-text-2); text-decoration: none; font-weight: 500; }
.site-nav .nav-link:hover { color: var(--bs-fg-body); background: var(--tt-tint); }
.btn-icon { display: inline-flex; align-items: center; justify-content: center; min-width: 2.375rem; height: 2.375rem; border-radius: .5rem; border: 0; background: transparent; color: var(--tt-text-2); font-size: 1.15rem; text-decoration: none; cursor: pointer; }
.btn-icon:hover { background: var(--tt-tint); color: var(--bs-fg-body); }
.lang-switch { font-size: .85rem; font-weight: 700; letter-spacing: .04em; }
.nav-toggle { display: none; }
@media (width < 992px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; padding: .75rem 1rem 1rem; background: var(--bs-bg-body); border-bottom: 1px solid var(--tt-line); box-shadow: 0 12px 24px rgb(0 0 0 / .08); }
  .site-nav.open { display: flex; }
}

/* Главный экран */
.hero { position: relative; overflow: hidden; padding: 5rem 0 4.5rem;
  background:
    radial-gradient(900px 480px at 85% 10%, color-mix(in srgb, var(--tt-blue) 18%, transparent), transparent 70%),
    radial-gradient(600px 400px at 0% 100%, color-mix(in srgb, var(--tt-amber) 14%, transparent), transparent 70%); }
.hero-title { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; line-height: 1.08; margin-bottom: 1.25rem; }
.text-accent { color: var(--tt-blue); }
.hero-lead { font-size: 1.2rem; color: var(--tt-text-2); max-width: 36rem; }
.hero-note { color: var(--tt-text-2); font-size: .925rem; }
.hero .badge { font-size: .85rem; padding: .4rem .75rem; }
.hero-shot { position: relative; }
.window { margin: 0; border-radius: .75rem; overflow: hidden; background: #fff; border: 1px solid var(--tt-line); box-shadow: 0 30px 60px -20px rgb(23 60 105 / .35), 0 12px 24px -12px rgb(23 60 105 / .25); transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); transition: transform .4s ease; }
.window:hover { transform: none; }
.window-bar { display: flex; gap: .4rem; padding: .55rem .75rem; background: #e9eef5; border-bottom: 1px solid var(--tt-line); }
.window-bar span { width: .7rem; height: .7rem; border-radius: 50%; background: #c7d0dc; }
.window img { display: block; width: 100%; height: auto; }
.countdown { position: absolute; z-index: 2; left: -1rem; bottom: -1.25rem; display: flex; align-items: center; gap: .6rem; padding: .7rem 1.1rem; border-radius: .75rem; background: var(--tt-navy); color: #fff; font: 600 1.35rem/1 ui-monospace, "Cascadia Mono", Consolas, monospace; box-shadow: 0 12px 28px rgb(23 60 105 / .35); }
.countdown i { color: var(--tt-amber); }
@media (width < 1024px) { .window { transform: none; } .countdown { left: .5rem; } }

/* Секции */
.section { padding: 5rem 0; }
.section-tint { background: var(--tt-tint); border-block: 1px solid var(--tt-line); }
.section-head { text-align: center; max-width: 44rem; margin: 0 auto 3rem; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: .75rem; }
.section-head p { color: var(--tt-text-2); font-size: 1.1rem; margin: 0; }
.narrow { max-width: 52rem; }

.use { text-align: center; padding: .5rem; }
.use i { font-size: 2rem; color: var(--tt-blue); }
.use h3 { font-size: 1.1rem; font-weight: 700; margin: .75rem 0 .4rem; }
.use p { color: var(--tt-text-2); margin: 0; font-size: .95rem; }

.feature { border-color: var(--tt-line); transition: transform .2s ease, box-shadow .2s ease; }
.feature:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -14px rgb(23 60 105 / .3); }
.feature h3, .dl h3 { font-size: 1.15rem; font-weight: 700; margin: 1rem 0 .5rem; }
.feature p, .dl p { color: var(--tt-text-2); margin: 0; }
.feature-icon { display: inline-flex; width: 3rem; height: 3rem; align-items: center; justify-content: center; border-radius: .8rem; font-size: 1.4rem; color: #fff; background: linear-gradient(135deg, #4a91e0, var(--tt-blue-dark)); box-shadow: inset 0 -2px 0 rgb(0 0 0 / .15); }

/* Скриншоты */
.shot { display: block; text-decoration: none; color: var(--tt-text-2); font-size: .9rem; }
.shot img { display: block; width: 100%; aspect-ratio: 960 / 620; object-fit: cover; object-position: top left; border-radius: .6rem; border: 1px solid var(--tt-line); background: #fff; box-shadow: 0 8px 20px -12px rgb(23 60 105 / .35); transition: transform .2s ease, box-shadow .2s ease; }
.shot:hover img { transform: translateY(-3px) scale(1.015); box-shadow: 0 18px 34px -16px rgb(23 60 105 / .45); }
.shot span { display: block; margin-top: .6rem; line-height: 1.35; }

.lightbox { border: 0; padding: 0; max-width: min(96vw, 1100px); background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgb(10 20 35 / .82); backdrop-filter: blur(3px); }
.lightbox img { display: block; max-width: 100%; max-height: 82vh; border-radius: .6rem; box-shadow: 0 30px 80px rgb(0 0 0 / .5); }
.lightbox p { color: #fff; text-align: center; margin: .9rem 0 0; }
.lightbox-close { position: absolute; top: -2.75rem; right: 0; color: #fff; }
.lightbox-close:hover { background: rgb(255 255 255 / .15); color: #fff; }

/* Как это работает */
.steps { list-style: none; padding: 0; margin: 0; }
.step { position: relative; height: 100%; padding: 1.75rem 1.5rem 1.5rem; border-radius: 1rem; border: 1px solid var(--tt-line); background: var(--bs-bg-body); }
.step-num { display: inline-flex; width: 2.25rem; height: 2.25rem; align-items: center; justify-content: center; border-radius: 50%; font-weight: 800; color: #fff; background: var(--tt-blue); }
.step h3 { font-size: 1.15rem; font-weight: 700; margin: 1rem 0 .5rem; }
.step p { color: var(--tt-text-2); margin: 0; }
@media (width >= 1024px) {
  .steps li:not(:last-child) .step::after { content: "\F285"; font-family: bootstrap-icons; position: absolute; right: -1.15rem; top: 2rem; z-index: 1; color: var(--tt-blue); font-size: 1.1rem; }
}
.key-box { padding: 2rem; border-radius: 1rem; background: linear-gradient(135deg, var(--tt-navy), #1f4f8a); color: #e8f0fb; }
.key-box h3 { color: #fff; font-size: 1.25rem; font-weight: 700; }
.key-box p { color: #c9d7ea; }
.key-box .fg-2 { color: #9fb3cf !important; }
.formula { text-align: center; white-space: nowrap; font: 600 clamp(1rem, 1.6vw, 1.3rem)/1.5 ui-monospace, "Cascadia Mono", Consolas, monospace; color: #fff; }
.formula small { font-size: .65em; opacity: .75; }
.formula span { padding: .05rem .35rem; border-radius: .35rem; }
.f-k { background: rgb(255 255 255 / .15); }
.f-t, .chip-t { background: #2f6fb8; }
.f-p, .chip-p { background: #a86a00; }
.f-s, .chip-s { background: #147d70; }
.chip-t, .chip-p, .chip-s { color: #fff; font-size: .85rem; padding: .3rem .7rem; border-radius: 2rem; }

/* Загрузка */
.section-download { background: var(--tt-tint); border-block: 1px solid var(--tt-line); }
.dl { border-color: var(--tt-line); }
.dl-main { border: 2px solid var(--tt-blue); box-shadow: 0 18px 40px -22px rgb(47 111 184 / .6); }
.dl-meta { margin: 1.25rem 0 1rem; font-size: .85rem; display: grid; grid-template-columns: auto 1fr; gap: .3rem .75rem; }
.dl-meta dt { color: var(--tt-text-2); font-weight: 500; }
.dl-meta dd { margin: 0; min-width: 0; }
.sha { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8rem; }
.smartscreen { color: var(--tt-text-2); font-size: .925rem; max-width: 52rem; margin-inline: auto; text-align: center; }
.cli { padding: 2rem; border-radius: 1rem; background: var(--bs-bg-body); border: 1px solid var(--tt-line); }
.cli h3 { font-size: 1.2rem; font-weight: 700; }
.cli p { color: var(--tt-text-2); }
.terminal { margin: 0; padding: 1.25rem 1.4rem; border-radius: .75rem; background: #0f1722; color: #d7e3f4; font-size: .85rem; line-height: 1.7; overflow-x: auto; }
.terminal .ps { color: var(--tt-amber); user-select: none; }

/* Вопросы */
.accordion { --bs-accordion-border-color: var(--tt-line); }
.accordion-item { border-radius: .75rem !important; margin-bottom: .75rem; overflow: hidden; }
.accordion-header { display: flex; align-items: center; gap: 1rem; cursor: pointer; font-weight: 600; list-style: none; }
.accordion-header .accordion-icon { transition: transform .2s ease; font-size: 1rem; }
.accordion-item[open] .accordion-header .accordion-icon { transform: rotate(180deg); }
.accordion-body { padding: 0 1.25rem 1.1rem; color: var(--tt-text-2); }

/* Подвал */
.site-footer { padding: 3.5rem 0 1.5rem; background: #0f1c2e; color: #b5c2d3; }
.site-footer a { color: #dbe6f4; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-name span { color: #7fb2ee; }
.site-footer h4 { color: #fff; font-size: .95rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1rem; }
.site-footer li { margin-bottom: .4rem; }
.site-footer a[aria-current] { font-weight: 700; }
.footer-brand { text-decoration: none !important; }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgb(255 255 255 / .1); font-size: .875rem; }

[data-bs-theme=dark] .window, [data-bs-theme=dark] .shot img { border-color: #343c47; }
[data-bs-theme=dark] .window-bar { background: #2a3039; border-color: #343c47; }
[data-bs-theme=dark] .window-bar span { background: #4a5462; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } .window { transform: none; } }

.eq > * { display: flex; }
.eq > * > .card { flex: 1 1 auto; }
.dl { display: flex; flex-direction: column; }
.dl > .card-body { flex: 1 1 auto; }
