/*
Theme Name: Oz Retro
Template: blankslate
Author: Grigory Frolov
Description: Win95-style desktop homepage. Colors, fonts and background images inherited from the Oz theme.
Version: 0.1
*/

/* ===== Palette: Oz colors on Win95 chrome ===== */
:root {
  --face: #c0c0c0;
  --face-dark: #808080;
  --face-darker: #404040;
  --face-light: #ffffff;
  --title-1: #2c4c9a;
  --title-2: #6a8fd8;
  --title-inactive-1: #808080;
  --title-inactive-2: #a8a8a8;
  --accent: #ff5c52;
  --ink: #1b1d25;
  --paper: #ffffff;
  --desktop-label: #1b1d25;
  --desktop-label-halo: rgba(255, 255, 255, 0.75);
  --taskbar-h: 42px;
}
body[data-theme="dark"] {
  --face: #3a3d44;
  --face-dark: #17181c;
  --face-darker: #000000;
  --face-light: #5a5e68;
  --paper: #1a1b21;
  --ink: #eaeaea;
  --desktop-label: #ffffff;
  --desktop-label-halo: rgba(0, 0, 0, 0.85);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: "Roboto", system-ui, sans-serif;
  font-size: 15px;
  color: var(--ink);
  background-image: url("img/bg-white.webp");
  background-attachment: fixed;
  background-size: cover;
  padding-bottom: var(--taskbar-h);
}
body[data-theme="dark"] {
  background-image: url("img/bg.webp");
}
body.notransition * { transition: none !important; }

a { color: var(--title-1); }
body[data-theme="dark"] a { color: #9db4e8; }

img { max-width: 100%; height: auto; }

/* Скрытый текст для скринридеров (skip-link из blankslate) */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.screen-reader-text:focus {
  position: fixed;
  top: 6px;
  left: 6px;
  z-index: 6000;
  width: auto;
  height: auto;
  clip-path: none;
  padding: 8px 12px;
  background: var(--face);
  border: 2px solid;
  border-color: var(--face-light) var(--face-darker) var(--face-darker) var(--face-light);
  color: var(--ink);
}

/* ===== Bevels ===== */
.bevel-out {
  border: 2px solid;
  border-color: var(--face-light) var(--face-darker) var(--face-darker) var(--face-light);
}
.bevel-in {
  border: 2px solid;
  border-color: var(--face-dark) var(--face-light) var(--face-light) var(--face-dark);
}

/* ===== Desktop ===== */
.desktop {
  position: relative;
  min-height: calc(100vh - var(--taskbar-h));
  overflow: hidden;
  padding: 14px;
}

.desktop-icons {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 8px;
  height: calc(100vh - var(--taskbar-h) - 40px);
  width: max-content;
  position: relative;
  z-index: 1;
}

.desktop-icon {
  width: 88px;
  padding: 6px 2px;
  background: none;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  font: inherit;
  color: var(--desktop-label);
  text-decoration: none;
}
.desktop-icon.current-section .icon-label {
  background: var(--title-1);
  color: #fff;
  text-shadow: none;
}
/* отступ перед новой группой иконок */
.desktop-icon.group-start { margin-top: 20px; }
@media (max-width: 768px) {
  .desktop-icon.group-start { margin-top: 0; }
}
.desktop-icon svg { width: 34px; height: 34px; display: block; margin: 0 auto 4px; }
.desktop-icon .icon-label {
  display: inline-block;
  font-size: 12px;
  line-height: 1.25;
  padding: 1px 3px;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-shadow:
    1px 0 var(--desktop-label-halo), -1px 0 var(--desktop-label-halo),
    0 1px var(--desktop-label-halo), 0 -1px var(--desktop-label-halo);
}
.desktop-icon:hover .icon-label,
.desktop-icon:focus-visible .icon-label {
  background: var(--title-1);
  color: #fff;
  text-shadow: none;
}
.desktop-icon.attention .icon-label {
  background: var(--accent);
  color: #000;
  text-shadow: none;
  animation: icon-blink 1.2s steps(1) infinite;
}
@keyframes icon-blink {
  50% { background: transparent; color: var(--desktop-label); }
}

/* ===== Windows ===== */
.window {
  position: absolute;
  width: 520px;
  max-width: calc(100vw - 40px);
  background: var(--face);
  border: 2px solid;
  border-color: var(--face-light) var(--face-darker) var(--face-darker) var(--face-light);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.55);
  padding: 3px;
}

.titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 4px;
  background: linear-gradient(90deg, var(--title-inactive-1), var(--title-inactive-2));
  color: #e6e6e6;
  cursor: default;
  user-select: none;
  touch-action: none;
}
.window.active .titlebar {
  background: linear-gradient(90deg, var(--title-1), var(--title-2));
  color: #fff;
}
.titlebar-icon { display: flex; }
.titlebar-icon svg { width: 16px; height: 16px; }
.titlebar-text {
  flex: 1;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.titlebar-buttons { display: flex; gap: 2px; }
.tb-btn {
  width: 20px;
  height: 18px;
  padding: 0;
  font: 700 11px/1 "Roboto", sans-serif;
  color: #000;
  background: var(--face);
  border: 2px solid;
  border-color: var(--face-light) var(--face-darker) var(--face-darker) var(--face-light);
  cursor: pointer;
}
.tb-btn:active {
  border-color: var(--face-darker) var(--face-light) var(--face-light) var(--face-darker);
}
body[data-theme="dark"] .tb-btn { color: var(--ink); }

.window-body {
  margin-top: 3px;
  padding: 16px 18px;
  background: var(--paper);
  border: 2px solid;
  border-color: var(--face-dark) var(--face-light) var(--face-light) var(--face-dark);
  max-height: min(62vh, 560px);
  overflow: auto;
  font-size: 14px;
  line-height: 1.55;
}
.window-body > :first-child { margin-top: 0; }
.window-body > :last-child { margin-bottom: 0; }
.window-body h1 { font-size: 17px; margin: 0 0 10px; }
.window-body h2 { font-size: 15px; margin: 18px 0 8px; }

.window-statusbar {
  display: flex;
  gap: 4px;
  margin-top: 3px;
  font-size: 12px;
}
.window-statusbar span {
  flex: 1;
  padding: 2px 6px;
  border: 1px solid;
  border-color: var(--face-dark) var(--face-light) var(--face-light) var(--face-dark);
}

/* Notepad-style windows use monospace */
.window.is-notepad .window-body { font-family: "Ubuntu Mono", monospace; font-size: 15px; }

.about-photo {
  float: right;
  width: 128px;
  margin: 0 0 10px 14px;
  border: 2px solid;
  border-color: var(--face-dark) var(--face-light) var(--face-light) var(--face-dark);
  padding: 2px;
  background: var(--face);
}

/* Retro button — same as in Oz */
button.retro-button, p.retro-button a, a.retro-button {
  display: inline-block;
  padding: 6px 12px;
  background-color: var(--accent);
  color: #000 !important;
  text-decoration: none;
  border: 2px solid #000;
  border-radius: 4px;
  box-shadow: 2px 2px 0 #000;
  font: inherit;
  transition: transform 0.1s ease-in-out, box-shadow 0.1s ease-in-out;
}
button.retro-button:hover, p.retro-button a:hover, a.retro-button:hover {
  transform: translateY(1px) translateX(1px);
  box-shadow: 1px 1px 0 #000;
  cursor: pointer;
}

/* Services grid inside the folder window */
.retro-services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.retro-service { text-align: center; }
.retro-service svg { width: 32px; height: 32px; color: var(--title-1); }
body[data-theme="dark"] .retro-service svg { color: #9db4e8; }
.retro-service b, .retro-service a { display: block; font-size: 13px; margin: 4px 0; }
.retro-service p { font-size: 12.5px; margin: 0; color: #555; }
body[data-theme="dark"] .retro-service p { color: #b6b9c2; }

/* Всплывающее превью поста у курсора (строки-«файлы») */
.file-preview-float {
  position: fixed;
  z-index: 6500;
  width: 224px;
  padding: 3px;
  background: var(--face);
  border: 2px solid;
  border-color: var(--face-light) var(--face-darker) var(--face-darker) var(--face-light);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
.file-preview-float img {
  display: block;
  width: 100%;
  height: auto;
  border: 2px solid;
  border-color: var(--face-dark) var(--face-light) var(--face-light) var(--face-dark);
  background: #000;
}
.file-preview-float[hidden] { display: none; }

/* Blog window: file list */
.file-list { list-style: none; margin: 0; padding: 0; }
.file-list li { display: flex; align-items: center; gap: 8px; padding: 4px 2px; }
.file-list svg { width: 18px; height: 18px; flex: none; }
.file-list a { text-decoration: none; }
.file-list a:hover { background: var(--title-1); color: #fff; }
.file-list .file-date { margin-left: auto; font-size: 12px; color: #595959; white-space: nowrap; }
body[data-theme="dark"] .file-list .file-date { color: #9aa0ab; }

/* Lead form (markup comes from the reusable block) */
.audit-request-form .form-fields { display: flex; flex-wrap: wrap; gap: 10px; }
.audit-request-form input[type="text"],
.audit-request-form input[type="email"] {
  flex: 1 1 160px;
  padding: 8px;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid;
  border-color: var(--face-dark) var(--face-light) var(--face-light) var(--face-dark);
}
.audit-request-form .form-consent { display: block; margin-top: 10px; font-size: 12.5px; }

/* FAQ block (plugin) inside window */
.window-body .oz-faq-question { font-size: 14px; }
body[data-theme="dark"] .oz-faq-question { background: #23252c; color: #fff; }
body[data-theme="dark"] .oz-faq-answer { color: #eaeaea; }

/* ===== Taskbar ===== */
.taskbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  height: var(--taskbar-h);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  background: var(--face);
  border-top: 2px solid var(--face-light);
  box-shadow: 0 -1px 0 var(--face-dark);
}

.tb-start {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  font: 700 14px "Roboto", sans-serif;
  color: var(--ink);
  background: var(--face);
  cursor: pointer;
}
.tb-start:active, .tb-start.open {
  border-color: var(--face-darker) var(--face-light) var(--face-light) var(--face-darker);
}
.tb-start .win-logo { color: var(--title-1); font-size: 16px; }
body[data-theme="dark"] .tb-start .win-logo { color: #9db4e8; }

.task-buttons { display: flex; gap: 4px; flex: 1; overflow: hidden; }
.task-btn {
  height: 30px;
  max-width: 180px;
  padding: 0 10px;
  font: 13px "Roboto", sans-serif;
  color: var(--ink);
  background: var(--face);
  border: 2px solid;
  border-color: var(--face-light) var(--face-darker) var(--face-darker) var(--face-light);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Открытое окно — кнопка утоплена */
.task-btn.open {
  border-color: var(--face-darker) var(--face-light) var(--face-light) var(--face-darker);
}
/* Окно в фокусе — утоплена + жирный текст + классический дизеринг Win95 */
.task-btn.active {
  border-color: var(--face-darker) var(--face-light) var(--face-light) var(--face-darker);
  font-weight: 700;
  background-image: repeating-conic-gradient(var(--face-light) 0% 25%, var(--face) 0% 50%);
  background-size: 4px 4px;
}

.tray {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 10px;
  font-size: 13px;
}
.tray button {
  background: none;
  border: none;
  padding: 0;
  font-size: 15px;
  cursor: pointer;
  color: var(--ink);
  line-height: 1;
}

/* ===== Start menu ===== */
.start-menu[hidden] { display: none; }
.start-menu {
  position: fixed;
  left: 6px;
  bottom: calc(var(--taskbar-h) + 2px);
  z-index: 1001;
  display: flex;
  min-width: 220px;
  background: var(--face);
  border: 2px solid;
  border-color: var(--face-light) var(--face-darker) var(--face-darker) var(--face-light);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.55);
}
.start-stripe {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  background: linear-gradient(0deg, var(--title-1), var(--title-2));
  color: #fff;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 10px 4px;
  font-size: 15px;
}
.start-menu ul { list-style: none; margin: 0; padding: 4px 0; flex: 1; }
.start-menu ul li { margin: 0; }
.start-menu ul a {
  display: block;
  padding: 7px 16px;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
}
.start-menu ul a:hover { background: var(--title-1); color: #fff; }
.start-menu ul ul { padding: 0 0 4px 18px; }
.start-menu ul ul a { font-size: 13px; padding: 5px 12px; }

/* ===== Хлебные крошки: адресная строка Проводника ===== */
.oz-crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
  padding: 4px 8px;
  font-size: 12.5px;
  color: var(--ink);
  border-bottom: 1px solid var(--face-dark);
  box-shadow: 0 1px 0 var(--face-light);
}
.oz-crumbs-label { flex: none; }
.oz-crumbs-path {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 2px 8px;
  background: var(--paper);
  border: 2px solid;
  border-color: var(--face-dark) var(--face-light) var(--face-light) var(--face-dark);
  font-family: "Ubuntu Mono", monospace;
  font-size: 13px;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.oz-crumbs-path::-webkit-scrollbar { display: none; }
.oz-crumbs-path a {
  color: var(--ink);
  text-decoration: none;
  padding: 0 2px;
}
.oz-crumbs-path a:hover { background: var(--title-1); color: #fff; }
.oz-crumbs-path b { font-weight: 700; padding: 0 2px; }
.oz-crumbs-sep { color: var(--face-dark); }

/* ===== Inner pages (non-front) ===== */

/* Колонка иконок-разделов слева на широких экранах */
.desktop-side-icons {
  position: fixed;
  left: 14px;
  top: 14px; /* как на главной: #desktop имеет padding 14px */
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.desktop-side-icons .desktop-icon { text-decoration: none; }
.desktop-side-icons .desktop-icon.current-section .icon-label {
  background: var(--title-1);
  color: #fff;
  text-shadow: none;
}
@media (max-width: 1240px) {
  .desktop-side-icons { display: none; }
}

/* «Соседние файлы» под окном статьи */
.related-files { margin: 20px 0 24px; }
.related-files-caption {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--desktop-label);
  text-shadow: 1px 1px var(--desktop-label-halo);
}
.related-files-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
}
.related-files .desktop-icon {
  width: 128px;
  text-decoration: none;
}

.inner-area {
  max-width: 860px;
  margin: 26px auto;
  padding: 0 14px;
}

.window--static {
  position: static;
  width: auto;
  max-width: none;
  margin: 0 0 22px;
}
.window--static .window-body { max-height: none; }
.window--static .titlebar {
  background: linear-gradient(90deg, var(--title-1), var(--title-2));
  color: #fff;
  cursor: move;
}
.window--static.is-article .window-body { padding: 22px 26px; }

.inner-footer {
  text-align: center;
  font-size: 13px;
  color: var(--desktop-label);
  text-shadow: 1px 1px var(--desktop-label-halo);
}
.footer-legal { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; }
.footer-legal a { color: var(--desktop-label); display: inline-block; padding: 6px 4px; }

/* Юридические ссылки в Start-меню */
.start-menu-legal {
  border-top: 1px solid var(--face-dark);
  box-shadow: 0 1px 0 var(--face-light) inset;
  padding: 6px 16px 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
}
.start-menu-legal a {
  font-size: 11.5px;
  color: #666;
  text-decoration: none;
}
.start-menu-legal a:hover { color: var(--title-1); text-decoration: underline; }
body[data-theme="dark"] .start-menu-legal a { color: #9aa0ab; }

/* GDPR-баннер согласия в ретро-стиле */
#cookie-banner {
  position: fixed;
  left: 50%;
  bottom: calc(var(--taskbar-h) + 12px);
  transform: translateX(-50%);
  z-index: 6800;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: min(560px, 94vw);
  padding: 12px 16px;
  background: var(--face);
  border: 2px solid;
  border-color: var(--face-light) var(--face-darker) var(--face-darker) var(--face-light);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.4);
  font-size: 13.5px;
  color: var(--ink);
}
#cookie-banner .cookie-banner-actions { display: flex; gap: 10px; }
#cookie-banner button {
  min-width: 78px;
  padding: 5px 12px;
  font: 13px "Roboto", sans-serif;
  color: var(--ink);
  background: var(--face);
  border: 2px solid;
  border-color: var(--face-light) var(--face-darker) var(--face-darker) var(--face-light);
  cursor: pointer;
}
#cookie-banner button:active { border-color: var(--face-darker) var(--face-light) var(--face-light) var(--face-darker); }
#cookie-banner #acceptCookies { font-weight: 700; outline: 1px solid var(--face-darker); outline-offset: 1px; }

/* Кнопка Copy у кода — bevel */
.copy-code-wrap { position: relative; }
.copy-code-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  padding: 3px 10px;
  font: 12px "Roboto", sans-serif;
  color: var(--ink);
  background: var(--face);
  border: 2px solid;
  border-color: var(--face-light) var(--face-darker) var(--face-darker) var(--face-light);
  cursor: pointer;
}
.copy-code-btn:active { border-color: var(--face-darker) var(--face-light) var(--face-light) var(--face-darker); }

/* Типографика контента статей внутри окна */
.window-body .entry h1 { font-size: 24px; line-height: 1.3; }
.window-body .entry h2 { font-size: 19px; margin: 24px 0 10px; }
.window-body .entry h3 { font-size: 16px; margin: 20px 0 8px; }
.window-body .entry p, .window-body .entry li { font-size: 15px; line-height: 1.65; }
.entry-meta { color: #595959; font-size: 13px; margin-top: -6px; }
body[data-theme="dark"] .entry-meta { color: #9aa0ab; }

.window-body pre, .window-body code {
  font-family: "Ubuntu Mono", monospace;
}
.window-body pre {
  background: var(--face);
  border: 2px solid;
  border-color: var(--face-dark) var(--face-light) var(--face-light) var(--face-dark);
  padding: 12px;
  overflow: auto;
}
.window-body blockquote {
  margin: 1em 0;
  padding: 10px 16px;
  border-left: 4px solid var(--title-1);
  background: var(--face);
}
.window-body .is-style-rounded img { border-radius: 10px; }
.window-body figure { margin: 1em 0; max-width: 100%; }
.window-body iframe { max-width: 100%; }
.window-body .wp-block-table { overflow: auto; }

/* YouTube-заглушка из inc/youtube.php (как в oz) */
.youtube-placeholder { position: relative; cursor: pointer; width: 50%; }
.youtube-placeholder img { display: block; }
@media (max-width: 600px) {
  .youtube-placeholder { width: 100%; }
}
/* iframe заменён заглушкой — спейсер соотношения сторон адаптивного эмбеда не нужен */
.wp-embed-responsive .wp-has-aspect-ratio .wp-block-embed__wrapper:has(.youtube-placeholder)::before {
  content: none;
  padding-top: 0;
}

/* ===== Карточки услуг (schema-tools-grid из контента страниц) ===== */
.schema-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin: 1em 0 1.5em;
}
.schema-tool-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  background: var(--paper);
  border: 2px solid;
  border-color: var(--face-light) var(--face-darker) var(--face-darker) var(--face-light);
  text-align: center;
}
.schema-tool-card .icon { line-height: 0; }
.schema-tool-card .icon svg {
  width: 36px;
  height: 36px;
  color: var(--title-1);
  margin: 0 auto;
}
.schema-tool-card a, .schema-tool-card b {
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
  line-height: 1.4;
}
.schema-tool-card p {
  font-size: 12.5px;
  margin: 0;
  color: #555;
  line-height: 1.5;
}
.schema-tool-card .retro-button {
  margin: auto auto 0;
  font-size: 12.5px;
  padding: 4px 10px;
}
body[data-theme="dark"] .schema-tool-card p { color: #b6b9c2; }
body[data-theme="dark"] .schema-tool-card .icon svg { color: #9db4e8; }

/* ===== Детальные страницы услуг: Setup Wizard «Select components» ===== */
.service-subpage .schema-tools-grid {
  display: block;
  position: relative;
  background: var(--paper);
  border: 2px solid;
  border-color: var(--face-dark) var(--face-light) var(--face-light) var(--face-dark);
  padding: 4px 0 0 100px;
  margin: 1.2em 0;
}
/* синяя боковая панель инсталлятора */
.service-subpage .schema-tools-grid::after {
  content: "SETUP  WIZARD";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 88px;
  background: linear-gradient(180deg, var(--title-2), var(--title-1) 55%, #0d122b);
  border-right: 2px solid;
  border-color: var(--face-dark);
  color: #fff;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 14px 0;
  font: italic 700 22px Georgia, "Times New Roman", serif;
  letter-spacing: 4px;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4);
}
.service-subpage .schema-tools-grid::before {
  content: "Select the components you want installed:";
  display: block;
  padding: 10px 16px 8px;
  font-size: 13px;
  color: var(--ink);
  border-bottom: 1px solid var(--face-dark);
  box-shadow: 0 1px 0 var(--face-light);
  margin-bottom: 4px;
}
@media (max-width: 640px) {
  .service-subpage .schema-tools-grid { padding-left: 0; }
  .service-subpage .schema-tools-grid::after { display: none; }
}
.service-subpage .schema-tool-card {
  display: grid;
  grid-template-columns: 18px 26px 1fr auto;
  gap: 2px 10px;
  align-items: center;
  padding: 9px 16px;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
}
.service-subpage .schema-tool-card:hover { background: rgba(44, 76, 154, 0.08); }
body[data-theme="dark"] .service-subpage .schema-tool-card:hover { background: rgba(154, 180, 232, 0.1); }
/* чекбокс — видимая рамка со всех сторон + утопленность */
.service-subpage .schema-tool-card::before {
  content: "\2713";
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  font: 700 13px/1 "Ubuntu Mono", monospace;
  color: #000;
  background: #fff;
  border: 1px solid var(--face-dark);
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.35), 1px 1px 0 var(--face-light);
}
.service-subpage .schema-tool-card.unchecked::before { content: ""; }
.service-subpage .schema-tool-card.unchecked .icon,
.service-subpage .schema-tool-card.unchecked b,
.service-subpage .schema-tool-card.unchecked p { opacity: 0.45; }
.service-subpage .schema-tool-card .icon { grid-row: 1; line-height: 0; }
.service-subpage .schema-tool-card .icon svg {
  width: 22px;
  height: 22px;
  margin: 0;
  color: var(--title-1);
}
body[data-theme="dark"] .service-subpage .schema-tool-card .icon svg { color: #9db4e8; }
.service-subpage .schema-tool-card b {
  grid-row: 1;
  font-size: 14px;
  text-align: left;
}
/* «размер» компонента */
.service-subpage .schema-tool-card::after {
  content: attr(data-mb);
  grid-row: 1;
  grid-column: 4;
  font: 12px "Ubuntu Mono", monospace;
  color: #777;
  white-space: nowrap;
}
body[data-theme="dark"] .service-subpage .schema-tool-card::after { color: #9aa0ab; }
.service-subpage .schema-tool-card p {
  grid-row: 2;
  grid-column: 3 / 5;
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: #555;
  text-align: left;
}
body[data-theme="dark"] .service-subpage .schema-tool-card p { color: #b6b9c2; }
/* подвал мастера: счётчик + прогресс */
.service-subpage .wizard-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
  padding: 9px 16px;
  border-top: 1px solid var(--face-dark);
  box-shadow: 0 1px 0 var(--face-light) inset;
  font: 12.5px "Ubuntu Mono", monospace;
  color: var(--ink);
  background: var(--face);
}
.service-subpage .wizard-footer span:first-child { flex: 1; }
.service-subpage .wizard-progress {
  flex: 0 0 160px;
  height: 14px;
  background: var(--paper);
  border: 2px solid;
  border-color: var(--face-dark) var(--face-light) var(--face-light) var(--face-dark);
  overflow: hidden;
  display: block;
}
.service-subpage .wizard-progress i {
  display: block;
  height: 100%;
  /* сегментированные блоки как у прогресс-бара Win95 */
  background: repeating-linear-gradient(90deg, var(--title-1) 0 10px, transparent 10px 13px);
  transition: width 0.25s ease;
}

/* ===== /mobile-apps/: телефон OZKIA ===== */
.phone-page-h1 { text-align: center; }
.phone-page-hint { text-align: center; font-size: 13.5px; color: #666; }
body[data-theme="dark"] .phone-page-hint { color: #9aa0ab; }
.nokia-wrap { display: flex; justify-content: center; padding: 10px 0 4px; }
.nokia-phone {
  width: 252px;
  padding: 24px 20px 20px;
  background: linear-gradient(160deg, #4a505b, #23262b 70%);
  border: 2px solid #101216;
  border-radius: 30px 30px 42px 42px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.15), 7px 9px 0 rgba(0, 0, 0, 0.18);
}
.nokia-speaker {
  width: 46px;
  height: 6px;
  margin: 0 auto 12px;
  border-radius: 3px;
  background: repeating-linear-gradient(90deg, #14161a 0 4px, #2e323a 4px 8px);
}
.nokia-screen {
  display: flex;
  flex-direction: column;
  min-height: 190px;
  padding: 7px 9px;
  background: #9fb54a;
  border: 6px solid #14161a;
  border-radius: 6px;
  box-shadow: inset 2px 2px 0 rgba(0, 0, 0, 0.25);
  font-family: "Ubuntu Mono", monospace;
  color: #1c2508;
}
.nokia-status {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}
.nokia-screen-title {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  border-bottom: 2px solid #1c2508;
  padding: 3px 0;
  margin-bottom: 6px;
}
.nokia-menu { flex: 1; font-size: 13px; line-height: 1.55; }
.nokia-menu a {
  display: block;
  color: #1c2508;
  text-decoration: none;
  padding: 1px 3px;
}
.nokia-menu a:hover,
.nokia-menu a:focus { background: #1c2508; color: #9fb54a; }
.nokia-menu .soon { display: block; padding: 1px 3px; opacity: 0.55; }
.nokia-features { list-style: none; margin: 0; padding: 0; }
.nokia-features li { padding: 1px 2px; }
.nokia-softkeys {
  display: flex;
  justify-content: space-between;
  border-top: 2px solid #1c2508;
  margin-top: 6px;
  padding-top: 4px;
  font-size: 11.5px;
  font-weight: 700;
}
.nokia-softkeys button,
.nokia-softkeys a {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}
.nokia-softkeys button:hover,
.nokia-softkeys a:hover { background: #1c2508; color: #9fb54a; }
.nokia-brand {
  text-align: center;
  margin: 10px 0 8px;
  color: #9aa0ab;
  font: 700 12px "Roboto", sans-serif;
  letter-spacing: 3px;
}
.nokia-keys {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.nokia-key {
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(#565c66, #31353c);
  border: 1px solid #14161a;
  border-radius: 12px;
  color: #cfd3da;
  font: 700 11px "Roboto", sans-serif;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
}

/* Детальная страница приложения: телефон + листинг */
.app-hero {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.app-hero .nokia-wrap { flex: 0 0 auto; }
.app-listing { flex: 1; min-width: 260px; }
.app-listing h1 { font-size: 22px; margin: 4px 0 8px; }
.app-tagline { font-size: 14px; }
.app-meta { margin: 14px 0; }
.app-meta > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 3px 0;
  font-size: 13.5px;
}
.app-meta dt {
  flex: 0 0 90px;
  font-weight: 700;
}
.app-meta dt::after { content: ""; }
.app-meta dd {
  margin: 0;
  flex: 1;
  border-bottom: 1px dotted var(--face-dark);
  padding-bottom: 2px;
}
.app-stores { display: flex; gap: 12px; flex-wrap: wrap; }
.app-stores-soon { opacity: 0.75; cursor: default; }

/* ===== /themes/: полка с коробками софта 90-х ===== */
.shelf-intro { font-size: 14px; }
.theme-shelf {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 20px 44px;
  padding: 26px 16px 0;
  margin-bottom: 6px;
  border-bottom: 10px solid #a97c3d;
  box-shadow: 0 3px 0 #7a5423;
}
.shelf-item {
  width: 208px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}
.theme-box {
  position: relative;
  display: block;
  margin: 16px 16px 0 0;
  text-decoration: none;
  filter: drop-shadow(7px 9px 0 rgba(0, 0, 0, 0.16));
  transition: transform 0.15s ease;
}
a.theme-box:hover { transform: translateY(-6px); }
.box-front {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 262px;
  padding: 10px 12px 12px;
  background: linear-gradient(165deg, #6a8fd8, #2c4c9a 55%, #16244e);
  border: 2px solid #0d122b;
  color: #fff;
}
/* верхняя крышка и боковой корешок — псевдо-3D */
.box-lid {
  position: absolute;
  left: 0;
  top: -14px;
  width: 100%;
  height: 14px;
  background: #4a6bbd;
  border: 2px solid #0d122b;
  border-bottom: none;
  transform: skewX(-45deg);
  transform-origin: 0 100%;
}
.box-side {
  position: absolute;
  top: 0;
  right: -14px;
  width: 14px;
  height: 100%;
  background: #101c3f;
  border: 2px solid #0d122b;
  border-left: none;
  transform: skewY(-45deg);
  transform-origin: 0 0;
}
/* фирменная полоса как на коробке Win95 */
.box-stripe {
  height: 22px;
  margin: -10px -12px 0;
  background:
    linear-gradient(90deg, #1a8e8a 0 25%, #6a8fd8 25% 50%, #f7d774 50% 75%, #ff5c52 75%);
  border-bottom: 2px solid #0d122b;
}
.box-art {
  height: 118px;
  background: #fff;
  border: 2px solid #0d122b;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.box-art img { width: 100%; height: 100%; object-fit: cover; }
.box-art-initials {
  font: 700 44px "Ubuntu Mono", monospace;
  color: var(--title-1);
  letter-spacing: 2px;
}
.box-title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}
.box-tag {
  margin-top: auto;
  font-size: 11.5px;
  letter-spacing: 0.5px;
  opacity: 0.85;
}
.box-badge {
  position: absolute;
  right: -12px;
  top: 116px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #000;
  font: 700 13px "Roboto", sans-serif;
  border: 2px solid #000;
  border-radius: 50%;
  transform: rotate(-14deg);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35);
}
.box-desc {
  font-size: 12.5px;
  line-height: 1.5;
  color: #555;
}
body[data-theme="dark"] .box-desc { color: #b6b9c2; }
/* коробка «coming soon» */
.theme-box.is-soon { filter: drop-shadow(7px 9px 0 rgba(0, 0, 0, 0.08)); }
.theme-box.is-soon .box-front {
  background: repeating-linear-gradient(45deg, #d9d9d9 0 12px, #cccccc 12px 24px);
  border-style: dashed;
  color: #555;
}
.theme-box.is-soon .box-lid { background: #e3e3e3; border-style: dashed; }
.theme-box.is-soon .box-side { background: #bdbdbd; border-style: dashed; }
.theme-box.is-soon .box-art { background: #f2f2f2; border-style: dashed; }
.theme-box.is-soon .box-art-initials { color: #999; }
.theme-box.is-soon .box-title { text-shadow: none; }

/* ===== /tools/: Norton Commander ===== */
.is-nc .window-body {
  background: #0000a8;
  color: #fff;
  font-family: "Ubuntu Mono", monospace;
  padding: 16px 14px 10px;
}
.nc-h1 {
  color: #ffff55;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 14px;
}
.nc-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.nc-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 230px;
  border: 4px double #55ffff;
  padding: 10px 10px 8px;
}
.nc-panel-title {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: #0000a8;
  color: #fff;
  font-weight: 700;
  padding: 0 8px;
  white-space: nowrap;
  font-size: 14px;
}
.nc-cols {
  display: flex;
  justify-content: space-between;
  color: #ffff55;
  font-weight: 700;
  font-size: 13.5px;
  padding: 2px 6px 4px;
  border-bottom: 1px solid #55ffff;
  margin-bottom: 4px;
}
.nc-file {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 6px;
  font-size: 14.5px;
  text-decoration: none;
  color: #fff;
}
.nc-file .nc-file-size { color: #55ffff; }
.nc-file:hover,
.nc-file:focus {
  background: #00a8a8;
  color: #000;
}
.nc-file:hover .nc-file-size,
.nc-file:focus .nc-file-size { color: #000; }
.nc-info {
  margin-top: auto;
  border-top: 1px solid #55ffff;
  padding: 6px 4px 0;
  font-size: 13px;
  line-height: 1.45;
  color: #c7c7c7;
  min-height: 3.4em;
}
.nc-cmdline {
  padding: 10px 4px 2px;
  color: #c7c7c7;
  font-size: 14px;
}
.nc-cmdline::after {
  content: "\2588";
  animation: boot-cursor 0.8s steps(1) infinite;
}
.nc-fkeys {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.nc-fkey {
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
  font-size: 13px;
  text-decoration: none;
}
.nc-fkey b {
  color: #fff;
  font-weight: 400;
  padding-right: 1px;
}
.nc-fkey span {
  flex: 1;
  background: #00a8a8;
  color: #000;
  padding: 1px 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
a.nc-fkey:hover span { background: #55ffff; }
@media (max-width: 700px) {
  .nc-panels { grid-template-columns: 1fr; }
  .nc-fkeys { display: none; }
}

/* ===== /services/: карточки-«дискеты» 3.5" ===== */
.is-control-panel .schema-tools-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  align-items: start;
}
.is-control-panel .schema-tool-card {
  position: relative;
  display: block;
  padding: 54px 14px 16px;
  text-align: left;
  background: #2c4c9a;
  border: none;
  border-radius: 2px;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.18), inset -2px -2px 0 rgba(0, 0, 0, 0.28);
}
/* цвета пластика — по палитре oz */
.is-control-panel .schema-tool-card:nth-child(4n+2) { background: #1a8e8a; }
.is-control-panel .schema-tool-card:nth-child(4n+3) { background: #ff5c52; }
.is-control-panel .schema-tool-card:nth-child(4n)   { background: #3a3d44; }

/* металлическая шторка */
.is-control-panel .schema-tool-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 58%;
  height: 40px;
  transform: translateX(-42%);
  background: linear-gradient(180deg, #e6eaef, #aab1ba);
  border: 1px solid #6c737c;
  border-top: none;
  transition: transform 0.25s ease;
}
/* окно шторки */
.is-control-panel .schema-tool-card::after {
  content: "";
  position: absolute;
  top: 6px;
  left: calc(50% + 8%);
  width: 17px;
  height: 28px;
  background: rgba(0, 0, 0, 0.55);
  transition: transform 0.25s ease;
}
.is-control-panel .schema-tool-card:hover::before,
.is-control-panel .schema-tool-card:hover::after {
  transform: translateX(-42%) translateX(-14px);
}
.is-control-panel .schema-tool-card:hover::after { transform: translateX(-14px); }

/* пиктограмма услуги — на пластике слева от шторки */
.is-control-panel .schema-tool-card .icon {
  position: absolute;
  top: 8px;
  left: 12px;
  line-height: 0;
}
.is-control-panel .schema-tool-card .icon svg {
  width: 26px;
  height: 26px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

/* этикетка: заголовок + описание на линованной наклейке */
.is-control-panel .schema-tool-card b,
.is-control-panel .schema-tool-card a:not(.retro-button) {
  display: block;
  background: #fffef4;
  color: #1b1d25;
  border: 1px solid #8a93a5;
  border-bottom: none;
  padding: 10px 12px 4px;
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  text-align: left;
  text-decoration: none;
}
.is-control-panel .schema-tool-card p {
  background: #fffef4 repeating-linear-gradient(180deg, transparent 0 18px, #ccd6e4 18px 19px);
  color: #333;
  border: 1px solid #8a93a5;
  border-top: none;
  padding: 2px 12px 12px;
  margin: 0;
  font-size: 12.5px;
  line-height: 19px;
  text-align: left;
  min-height: 76px;
}
body[data-theme="dark"] .is-control-panel .schema-tool-card p { color: #333; }

/* ===== Control Panel (/services/): сетка иконок вместо карточек ===== */
.is-control-panel .control-panel-hint { color: #666; font-size: 13px; }
body[data-theme="dark"] .is-control-panel .control-panel-hint { color: #9aa0ab; }
.is-control-panel .schema-tool-card .retro-button { display: none; }
.is-control-panel .schema-tool-card a:not(.retro-button):hover { text-decoration: underline; }
.is-control-panel .window-body h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  margin: 22px 0 6px;
}
.is-control-panel .window-body h2::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--face-dark);
  border-bottom: 1px solid var(--face-light);
}

/* ===== Диалоговые окна (thank-you) ===== */
.is-dialog { max-width: 560px; margin-left: auto; margin-right: auto; }
.dialog-row { display: flex; gap: 16px; align-items: flex-start; }
.dialog-icon {
  flex: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  border: 2px solid #000;
  border-radius: 50%;
}
.dialog-icon--ok { background: #1a8e8a; }
.dialog-icon--error { background: var(--accent); color: #000; }
.dialog-row h1 { font-size: 17px; margin: 6px 0 8px; }
.dialog-buttons { text-align: center; margin-top: 18px; }

/* ===== Видео: архив и страница просмотра ===== */
.video-wrapper iframe { display: block; border: 2px solid; border-color: var(--face-dark) var(--face-light) var(--face-light) var(--face-dark); }
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}
.video-card {
  display: block;
  padding: 8px;
  background: var(--face);
  border: 2px solid;
  border-color: var(--face-light) var(--face-darker) var(--face-darker) var(--face-light);
  text-decoration: none;
  color: var(--ink);
  text-align: center;
}
.video-card img {
  display: block;
  width: 100%;
  border: 2px solid;
  border-color: var(--face-dark) var(--face-light) var(--face-light) var(--face-dark);
}
.video-card-title {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.4;
}
.video-card:hover .video-card-title { background: var(--title-1); color: #fff; }

/* ===== Галерея (oz-photo-gallery): окна в стиле Explorer ===== */

/* main галереи = окно: h1 играет роль тайтлбара (order:-1), breadcrumbs — строки меню */
main.oz-allery-index,
main.oz-gallery-album,
main.oz-gallery-photo {
  display: flex;
  flex-direction: column;
  background: var(--face);
  border: 2px solid;
  border-color: var(--face-light) var(--face-darker) var(--face-darker) var(--face-light);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35);
  padding: 3px;
  margin-bottom: 22px;
}

main.oz-allery-index h1,
main.oz-gallery-album h1,
main.oz-gallery-photo h1 {
  order: -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 5px 10px;
  background: linear-gradient(90deg, var(--title-1), var(--title-2));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}
main.oz-allery-index h1::after,
main.oz-gallery-album h1::after,
main.oz-gallery-photo h1::after {
  content: "_ \25A1 \00D7";
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 4px;
  opacity: 0.9;
  white-space: nowrap;
}

/* Хлебные крошки — строка меню под тайтлбаром */
.oz-allery-index .breadcrumbs,
.oz-gallery-album .breadcrumbs,
.oz-gallery-photo .breadcrumbs {
  font-size: 12.5px;
  padding: 5px 10px;
  margin: 0 0 8px;
  color: var(--ink);
  border-bottom: 1px solid var(--face-dark);
  box-shadow: 0 1px 0 var(--face-light);
}
.oz-allery-index .breadcrumbs a,
.oz-gallery-album .breadcrumbs a,
.oz-gallery-photo .breadcrumbs a {
  color: var(--ink);
  text-decoration: none;
}
.oz-allery-index .breadcrumbs a:hover,
.oz-gallery-album .breadcrumbs a:hover,
.oz-gallery-photo .breadcrumbs a:hover {
  background: var(--title-1);
  color: #fff;
}

/* Вступительные тексты */
.gallery-index-intro,
.album-intro,
.album-description {
  padding: 0 10px;
  font-size: 13.5px;
}
.album-description { padding-top: 8px; }

/* Сетка — белая утопленная область списка */
.oz-allery-index .album-grid,
.oz-gallery-album .album-grid {
  background: var(--paper);
  border: 2px solid;
  border-color: var(--face-dark) var(--face-light) var(--face-light) var(--face-dark);
  padding: 16px;
  margin: 4px 6px 6px;
}

/* Альбомы: сброс карточек плагина, обложка в утопленной рамке, подпись-«ярлык» */
.oz-allery-index .album-grid .album-item {
  background: none;
  padding: 0;
  border-radius: 0;
  transition: none;
}
.oz-allery-index .album-grid .album-item:hover {
  transform: none;
  box-shadow: none;
}
.oz-allery-index .album-grid .album-cover {
  border-radius: 0;
  border: 2px solid;
  border-color: var(--face-dark) var(--face-light) var(--face-light) var(--face-dark);
  background-color: var(--face);
  box-sizing: border-box;
}
.oz-allery-index .album-grid .album-title {
  margin-top: 8px;
  font-weight: 400;
  font-size: 13px;
  color: var(--ink);
  padding: 1px 5px;
}
.oz-allery-index .album-grid .album-item:hover .album-title {
  background: var(--title-1);
  color: #fff;
}
.oz-allery-index .album-grid .album-excerpt {
  font-size: 12px;
  color: #666;
  text-align: center;
}
body[data-theme="dark"] .oz-allery-index .album-grid .album-excerpt { color: #9aa0ab; }

/* Фото в альбоме: «слайды» — серая рамка-кадр, внутри утопленный снимок */
.oz-gallery-album .album-grid .photo-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--face);
  border: 2px solid;
  border-color: var(--face-light) var(--face-darker) var(--face-darker) var(--face-light);
  padding: 8px;
}
.oz-gallery-album .album-grid .photo-thumb img {
  background: none;
  padding: 0;
  border-radius: 0;
  border: 2px solid;
  border-color: var(--face-dark) var(--face-light) var(--face-light) var(--face-dark);
  transition: none;
  max-height: 140px;
}
.oz-gallery-album .album-grid .photo-thumb:hover {
  border-color: var(--face-darker) var(--face-light) var(--face-light) var(--face-darker);
}
.oz-gallery-album .album-grid .photo-thumb:hover img {
  transform: none;
  box-shadow: none;
}

/* ===== Детальная страница фото: «слайд-проектор» ===== */

/* Чёрный экран во всю ширину окна */
.oz-gallery-photo .photo-full {
  background: #000;
  border: 2px solid;
  border-color: var(--face-dark) var(--face-light) var(--face-light) var(--face-dark);
  padding: 22px 16px;
  margin: 4px 6px 0;
}
.oz-gallery-photo .photo-full img {
  border-radius: 0;
  max-height: 72vh;
  max-width: 100%;
}

/* Плёночная лента вместо боковых миниатюр плагина */
.oz-gallery-photo .photo-nav {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  transform: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  background: #1c1c1c;
  margin: 0 6px 10px;
  padding: 22px 14px;
  pointer-events: auto;
  overflow: hidden;
}
.oz-gallery-photo .photo-nav::before,
.oz-gallery-photo .photo-nav::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  height: 7px;
  background: repeating-linear-gradient(90deg, #c7c7c7 0 9px, transparent 9px 20px);
  opacity: 0.55;
}
.oz-gallery-photo .photo-nav::before { top: 7px; }
.oz-gallery-photo .photo-nav::after { bottom: 7px; }

.oz-gallery-photo .photo-nav .nav-thumb {
  position: static;
  width: auto;
  background: none;
  padding: 0;
  border-radius: 0;
  transition: none;
}
.oz-gallery-photo .photo-nav .nav-thumb.prev,
.oz-gallery-photo .photo-nav .nav-thumb.next {
  position: static;
  left: auto;
  right: auto;
}
.oz-gallery-photo .photo-nav .nav-thumb img {
  display: block;
  width: 92px;
  border-radius: 0;
  border: 2px solid #555;
  transition: none;
}
.oz-gallery-photo .photo-nav .nav-thumb:hover { transform: none; }
.oz-gallery-photo .photo-nav .nav-thumb:hover img {
  opacity: 1;
  border-color: var(--accent);
}
/* Текущий кадр (вставляется JS) — подсвечен, некликабелен */
.oz-gallery-photo .photo-nav .nav-thumb.current img {
  width: 106px;
  border-color: var(--accent);
}
.oz-gallery-photo .photo-nav > span:empty { display: none; }

/* Текст и возврат к альбому */
.oz-gallery-photo .photo-excerpt,
.oz-gallery-photo .photo-content {
  padding: 0 10px;
  font-size: 13.5px;
}
.oz-gallery-photo .photo-description { color: var(--ink); }
.oz-gallery-photo .back-to-album { padding: 0 10px 6px; margin: 6px 0 0; }
.oz-gallery-photo .back-to-album a {
  display: inline-block;
  padding: 5px 12px;
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
  background: var(--face);
  border: 2px solid;
  border-color: var(--face-light) var(--face-darker) var(--face-darker) var(--face-light);
}
.oz-gallery-photo .back-to-album a:active {
  border-color: var(--face-darker) var(--face-light) var(--face-light) var(--face-darker);
}

/* ===== Общие ретро-стили полей форм в окнах (генераторы схем и пр.) ===== */
.window-body input[type="text"],
.window-body input[type="url"],
.window-body input[type="email"],
.window-body input[type="number"],
.window-body textarea,
.window-body select {
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid;
  border-color: var(--face-dark) var(--face-light) var(--face-light) var(--face-dark);
  padding: 7px;
  max-width: 100%;
  box-sizing: border-box;
}
.window-body textarea { font-family: "Ubuntu Mono", monospace; }

/* Пагинация архивов — bevel-кнопки */
.pagination { margin-top: 16px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.pagination .page-numbers {
  display: inline-block;
  min-width: 32px;
  padding: 5px 10px;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  background: var(--face);
  border: 2px solid;
  border-color: var(--face-light) var(--face-darker) var(--face-darker) var(--face-light);
  font-size: 14px;
}
.pagination .page-numbers.current {
  border-color: var(--face-darker) var(--face-light) var(--face-light) var(--face-darker);
  font-weight: 700;
}
.pagination .page-numbers.dots { border: none; background: none; }

/* Навигация между постами */
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.post-nav .post-nav-next { margin-left: auto; }

/* Поисковая форма в окне Find */
.retro-search-form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.retro-search-form input[type="search"] {
  flex: 1 1 180px;
  padding: 8px;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid;
  border-color: var(--face-dark) var(--face-light) var(--face-light) var(--face-dark);
}
.archive-description { margin-bottom: 12px; }

/* ===== Maximized window ===== */
.window.maximized {
  left: 6px !important;
  top: 6px !important;
  width: calc(100% - 12px) !important;
  max-width: none;
}
.window.maximized .window-body {
  max-height: calc(100vh - var(--taskbar-h) - 110px);
}

/* Выделенная иконка (одиночный клик) */
.desktop-icon.selected .icon-label {
  background: var(--title-1);
  color: #fff;
  text-shadow: none;
}
.desktop-icon.attention.selected .icon-label { animation: none; }

/* ===== Boot screen ===== */
#boot-screen[hidden] { display: none; }
#boot-screen {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: #000;
  color: #c7c7c7;
  cursor: pointer;
}
#boot-screen pre {
  margin: 0;
  padding: 42px 48px;
  font-family: "Ubuntu Mono", monospace;
  font-size: 16px;
  line-height: 1.6;
  white-space: pre-wrap;
}
#boot-screen pre::after {
  content: "\2588";
  animation: boot-cursor 0.8s steps(1) infinite;
}
@keyframes boot-cursor { 50% { opacity: 0; } }

/* ===== 404: shutdown screen ===== */
.shutdown-screen {
  min-height: 55vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  background: #000;
  color: #c7c7c7;
  font-family: "Ubuntu Mono", monospace;
  text-align: center;
  padding: 60px 24px;
  border: 2px solid;
  border-color: var(--face-light) var(--face-darker) var(--face-darker) var(--face-light);
}
.shutdown-screen h1 { font-size: 20px; color: #c7c7c7; margin: 0; }
.shutdown-screen .shutdown-main {
  font-size: 26px;
  line-height: 1.4;
  color: #ffb400;
  margin: 0;
}
.shutdown-screen p { margin: 0; }
.shutdown-screen .retro-button { margin-top: 12px; }

/* ===================================================== */
/* ===== Пасхалки ===== */

/* Доп. пункты Start-меню (Minesweeper, Run...) */
.start-menu-col { flex: 1; display: flex; flex-direction: column; }
.start-menu-extra {
  border-top: 1px solid var(--face-dark);
  box-shadow: 0 1px 0 var(--face-light) inset;
  padding: 4px 0;
}
.start-menu-extra a {
  display: block;
  padding: 7px 16px;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
}
.start-menu-extra a:hover { background: var(--title-1); color: #fff; }

/* Диалоги */
.retro-modal {
  position: fixed;
  inset: 0;
  z-index: 7000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.retro-dialog {
  min-width: 300px;
  max-width: 440px;
  background: var(--face);
  border: 2px solid;
  border-color: var(--face-light) var(--face-darker) var(--face-darker) var(--face-light);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
  padding: 3px;
}
.retro-dialog .titlebar {
  background: linear-gradient(90deg, var(--title-1), var(--title-2));
  color: #fff;
}
.retro-dialog-body { padding: 16px 18px; font-size: 14px; line-height: 1.55; color: var(--ink); }
.retro-dialog-body p { margin: 0 0 10px; }
.retro-dialog-body p:last-child { margin-bottom: 0; }
.retro-dialog-body input[type="text"] {
  width: 100%;
  padding: 7px;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid;
  border-color: var(--face-dark) var(--face-light) var(--face-light) var(--face-dark);
  box-sizing: border-box;
}
.retro-dialog-buttons { display: flex; justify-content: center; gap: 10px; padding: 4px 12px 12px; }
.retro-dialog-btn {
  min-width: 84px;
  padding: 6px 14px;
  font: 13.5px "Roboto", sans-serif;
  color: var(--ink);
  background: var(--face);
  border: 2px solid;
  border-color: var(--face-light) var(--face-darker) var(--face-darker) var(--face-light);
  cursor: pointer;
}
.retro-dialog-btn:active { border-color: var(--face-darker) var(--face-light) var(--face-light) var(--face-darker); }
.retro-dialog-btn.primary { outline: 1px solid var(--face-darker); outline-offset: 1px; font-weight: 700; }
.winver-head { font-size: 16px; }
.oz-timeline { list-style: none; margin: 0; padding: 0; }
.oz-timeline li { padding: 4px 0; }
.tb-clock-clickable { cursor: pointer; }

/* Экран выключения (Run -> exit) */
.oz-shutdown-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  cursor: pointer;
  font-family: "Ubuntu Mono", monospace;
  text-align: center;
  padding: 20px;
}
.oz-shutdown-main { color: #ffb400; font-size: 26px; line-height: 1.4; margin: 0; }
.oz-shutdown-hint { color: #555; font-size: 14px; margin: 0; }

/* BSOD */
.oz-bsod {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: #0000a8;
  color: #c7c7c7;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: "Ubuntu Mono", monospace;
  padding: 24px;
}
.bsod-inner { max-width: 640px; font-size: 16px; line-height: 1.6; }
.bsod-inner p { margin: 0 0 18px; }
.bsod-title { background: #c7c7c7; color: #0000a8; font-weight: 700; padding: 0 6px; }
.bsod-cursor { animation: boot-cursor 0.8s steps(1) infinite; }

/* Clippy */
.oz-clippy {
  position: fixed;
  right: 18px;
  bottom: calc(var(--taskbar-h) + 12px);
  z-index: 6500;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  transition: transform 0.8s ease, opacity 0.8s ease;
}
.oz-clippy.clippy-leave { transform: translateX(180px) rotate(20deg); opacity: 0; }
.clippy-svg { width: 56px; height: 72px; filter: drop-shadow(1px 2px 0 rgba(0,0,0,0.3)); animation: clippy-bounce 2.2s ease-in-out infinite; }
@keyframes clippy-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.clippy-bubble {
  max-width: 260px;
  background: #ffffcc;
  color: #1b1d25;
  border: 1px solid #808080;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35);
  padding: 12px;
  font-size: 13.5px;
  line-height: 1.5;
}
.clippy-bubble p { margin: 0 0 10px; }
.clippy-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Котик */
.oz-cat {
  position: fixed;
  bottom: var(--taskbar-h);
  left: 0;
  z-index: 6000;
  width: 68px;
  cursor: pointer;
  animation-name: cat-run;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}
.oz-cat.rtl { animation-name: cat-run-rtl; }
.oz-cat.rtl .oz-cat-sprite svg { transform: scaleX(-1); }
.oz-cat.petted { animation-play-state: paused; }
.oz-cat-sprite { display: block; animation: cat-bob 0.35s steps(2) infinite; }
.oz-cat.petted .oz-cat-sprite { animation: none; }
@keyframes cat-run { from { transform: translateX(-90px); } to { transform: translateX(calc(100vw + 90px)); } }
@keyframes cat-run-rtl { from { transform: translateX(calc(100vw + 90px)); } to { transform: translateX(-90px); } }
@keyframes cat-bob { 0%, 100% { margin-bottom: 0; } 50% { margin-bottom: 3px; } }
.oz-cat-heart {
  position: absolute;
  top: -18px;
  left: 26px;
  color: var(--accent);
  font-size: 18px;
  animation: heart-up 0.9s ease-out forwards;
}
@keyframes heart-up { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-26px); opacity: 0; } }

/* Скринсейвер */
.oz-screensaver {
  position: fixed;
  inset: 0;
  z-index: 8000;
  background: #000;
  cursor: pointer;
}
.oz-screensaver .saver-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.oz-screensaver .saver-img.visible { opacity: 1; }
.saver-caption {
  position: absolute;
  bottom: 26px;
  left: 0;
  right: 0;
  text-align: center;
  color: #c7c7c7;
  font-family: "Ubuntu Mono", monospace;
  font-size: 15px;
  text-shadow: 1px 1px 0 #000;
}
.saver-caption--float { top: 45%; bottom: auto; font-size: 22px; animation: clippy-bounce 3s ease-in-out infinite; }

/* Сапёр */
.retro-dialog--mines { max-width: none; }
#oz-mines { user-select: none; }
.mines-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding: 5px;
  border: 2px solid;
  border-color: var(--face-dark) var(--face-light) var(--face-light) var(--face-dark);
}
.mines-counter {
  font-family: "Ubuntu Mono", monospace;
  font-size: 20px;
  font-weight: 700;
  color: #f00;
  background: #000;
  padding: 1px 6px;
}
#mines-face {
  font-size: 20px;
  line-height: 1;
  padding: 3px 6px;
  background: var(--face);
  border: 2px solid;
  border-color: var(--face-light) var(--face-darker) var(--face-darker) var(--face-light);
  cursor: pointer;
}
#mines-face:active { border-color: var(--face-darker) var(--face-light) var(--face-light) var(--face-darker); }
.mines-grid { display: grid; gap: 0; width: max-content; margin: 0 auto; }
.mines-cell {
  width: 24px;
  height: 24px;
  padding: 0;
  font: 700 14px "Ubuntu Mono", monospace;
  background: var(--face);
  border: 2px solid;
  border-color: var(--face-light) var(--face-darker) var(--face-darker) var(--face-light);
  cursor: pointer;
  color: transparent;
}
.mines-cell.flag { color: #c00; }
.mines-cell.revealed {
  border: 1px solid var(--face-dark);
  background: #d6d6d6;
  cursor: default;
}
.mines-cell.revealed[data-n="1"] { color: #0000f0; }
.mines-cell.revealed[data-n="2"] { color: #007800; }
.mines-cell.revealed[data-n="3"] { color: #f00000; }
.mines-cell.revealed[data-n="4"] { color: #000078; }
.mines-cell.revealed[data-n="5"] { color: #780000; }
.mines-cell.revealed[data-n="6"] { color: #007878; }
.mines-cell.revealed[data-n="7"] { color: #000; }
.mines-cell.revealed[data-n="8"] { color: #787878; }
.mines-cell.mine { color: #000; background: #ff8b85; }
.mines-hint { text-align: center; font-size: 12px; color: #666; margin: 8px 0 0; }
body[data-theme="dark"] .mines-cell.revealed { background: #4a4e57; }
body[data-theme="dark"] .mines-hint { color: #9aa0ab; }

/* Корзина */
/* Плавающие окна (корзина/ретро-сайт) на внутренних страницах */
.window--floating {
  position: fixed;
  width: min(520px, 94vw);
  z-index: 600;
}
.window--floating.is-geo { width: min(620px, 94vw); }
.window--floating.is-mines { width: min(300px, 94vw); }

/* Иконка корзины — справа внизу, как положено */
.desktop-icon.bin-icon {
  position: fixed;
  right: 14px;
  bottom: calc(var(--taskbar-h) + 14px);
  z-index: 2;
}
@media (max-width: 768px) {
  .desktop-icon.bin-icon { position: static; }
}
.bin-list a { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.desktop-icon.drop-hover .icon-label { background: var(--title-1); color: #fff; text-shadow: none; }
.bin-restored-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 2px;
}
.bin-restored-row .retro-dialog-btn { min-width: 0; padding: 3px 10px; font-size: 12.5px; }

/* GeoCities 1999 */
.is-geo { width: 620px; }
.geo-address {
  margin-top: 3px;
  padding: 4px 8px;
  font-size: 12px;
  color: var(--ink);
  border-bottom: 1px solid var(--face-dark);
  box-shadow: 0 1px 0 var(--face-light);
}
.geo-address span { background: var(--paper); padding: 1px 6px; border: 1px solid var(--face-dark); }
.window-body.geo95 {
  font-family: "Comic Sans MS", "Chalkboard SE", cursive;
  background: linear-gradient(180deg, #aef3ff, #ffd9fb 60%, #fffbb0);
  color: #16126e;
  text-align: center;
}
.geo95 marquee { color: #d4008f; font-weight: 700; }
.geo-title {
  font-size: 26px;
  margin: 8px 0;
  color: #ff00aa;
  text-shadow: 2px 2px 0 #ffff00, 4px 4px 0 rgba(0, 0, 0, 0.15);
}
.geo-blink { color: #f00; font-weight: 700; letter-spacing: 1px; animation: icon-blink 1s steps(1) infinite; }
.geo-table { margin: 10px auto; border: 3px ridge #808080; background: #fffff2; font-size: 13px; }
.geo-table td { border: 1px solid #808080; padding: 4px 10px; text-align: left; }
.geo-new { background: #f00; color: #ff0; font-weight: 700; padding: 0 5px; animation: icon-blink 0.8s steps(1) infinite; }
.geo-counter { font-family: "Ubuntu Mono", monospace; }
.geo-counter b { background: #000; color: #0f0; padding: 1px 8px; letter-spacing: 3px; }
.geo-link { color: #0000ee; font-weight: 700; }
.geo-badge { display: inline-block; background: #16126e; color: #fff; font-size: 11.5px; padding: 3px 10px; }
.geo-note { font-family: "Roboto", sans-serif; font-size: 12.5px; color: #444; font-style: italic; }

/* ===== Mobile: stacked windows feed ===== */
@media (max-width: 768px) {
  .desktop { min-height: 0; overflow: visible; padding: 10px; }

  .desktop-icons {
    flex-direction: row;
    height: auto;
    width: 100%;
    justify-content: center;
  }

  .window[data-secret] { display: none !important; }
  /* Плавающие окна (открытые пользователем) на мобильных — поверх контента */
  .window--floating,
  .window--floating[data-secret] {
    display: block !important;
    position: fixed !important;
    left: 3vw !important;
    top: 60px !important;
    width: 94vw;
    margin: 0;
  }
  .window--floating[hidden],
  .window--floating[data-secret][hidden] { display: none !important; }
  .window--floating .titlebar-buttons { display: flex; }
  .window,
  .window[hidden] {
    display: block;
    position: static !important;
    width: auto;
    max-width: none;
    margin: 0 0 14px;
    box-shadow: none;
  }
  .window .titlebar { cursor: default; }
  .window .titlebar-buttons { display: none; }
  .window-body { max-height: none; }

  .task-buttons { display: none; }
  .retro-services { grid-template-columns: 1fr; }
  .about-photo { width: 104px; }
}
