:root {
  /* Turquoise (≈HSV 180°, S95%, V95%) and Blue (≈HSV 210°, S95%, V95%) */
  --color-turquoise: #0cf2f2;
  --color-blue: #0c7ff2;
  --color-dark-blue: #1760b4;
  --accent: var(--color-blue);
  --accent-soft: rgba(12, 127, 242, 0.12);
  --gradient-accent: linear-gradient(90deg, var(--color-turquoise), var(--color-blue));
  --gradient-accent-2: linear-gradient(-45deg, var(--color-turquoise), var(--color-blue));
}

body {
  margin: 0;
  padding: 0;
  font-family: "PT Root UI", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #0f172a;
  background: #f8fafc;
}

/* Scalable centered container: 800px max width */
.container {
  max-width: 1024px;
  width: 100%;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* Top navigation as a solid/gradient bar */
.topbar {
  background: var(--gradient-accent);
  color: #fff;

  position: sticky;   /* "прилипает" к верхнему краю окна */
  top: 0;
  z-index: 1000; 
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
}
.topbar nav {
  display: inline-flex;
  gap: 24px;
}

.topbar-logo img {
  display: block;
  height: 26px;   
}

.topbar a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}
.topbar a:hover,
.topbar a:focus {
  text-decoration: underline;
}
.topbar img.icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: -2px;
  margin-right: 6px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

/* Hero section (first screen) */
.hero {
  background: var(--gradient-accent);
  color: #ffffff;
  padding: 40px 0 60px;
}

/* Внутренний layout hero: логотип слева, текст справа */
.hero-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;   /* вместо center */
}


.hero .badge {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-weight: 500;
}


.hero h1 {
  margin: 4px 0 8px;
  font-size: 2.75rem;
  letter-spacing: 0;
}

.hero p {
  margin: 10px 0 0;
  color: #eef6ff;
}

/* Логотип в hero */
.hero-logo {
  flex: 0 0 auto;
}

/* Логотип */
.hero-logo img {
  display: block;
  width: 350px; 
  max-width: 40vw;
  height: auto;
}

.hero-text {
  min-width: 260px;
  max-width: 550px;
}

/* подпись над заголовком в hero */
.hero-conf-label {
  margin: 0 0 6px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

/* подзаголовок-посвящение */
.hero-subtitle {
  margin: 6px 0 0;
  color: #e0f2ff;
}

.header-brand {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
}

.header-brand h1 {
  margin: 0;
  font-size: 1.9rem;
  letter-spacing: -0.01em;
}

.header-brand p {
  margin: 0;
  color: #475569;
}


/* Компактный заголовок для внутренних страниц */
.page-header {
  background: var(--gradient-accent);
  border-bottom: 1px solid #e2e8f0;
}

.page-header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 10px;
  padding-bottom: 12px;
}

/* маленький логотип в шапке страниц */
.page-header-logo img {
  display: block;
  height: 140px;   /* тут задаёшь нужный размер */
  width: auto;
}

/* текстовая часть */
.page-header-text {
  min-width: 0;
}

.page-header-conf {
  margin: 0 0 2px;
  font-size: 1.1rem;
  font-weight: 400;
  color: #ffffff;
}

.page-header-title {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: 0;
  color: #ffffff;
}

/* На узких экранах складываем в колонку */
@media (max-width: 640px) {
  .page-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-header-logo img {
    height: 150px;
  }
}



/* Remove old top-nav pill styles (replaced by .topbar) */

.card {
  border-radius: 5px;
  border: none;
  padding: 16px 18px;
  margin-bottom: 1.25rem;
  background: #ffffff;
}

.card h2,
.card h3 {
  margin-top: 0;
  letter-spacing: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  background: var(--accent-soft);
  color: #0a3d78;
}

/* Спокойный стиль для inline-кода */
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.95em;
  background: rgba(151, 234, 255, 0.976) !important; /* лёгкий светлый фон */
  color: #111827 !important;                     /* почти как основной текст */
  padding: 0.1em 0.35em;
  border-radius: 4px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: none;
}


dl.meta {
  display: grid;
  grid-template-columns: minmax(0, 160px) minmax(0, 1fr);
  gap: 0.4rem 1rem;
}

dl.meta dt {
  font-weight: 600;
}

dl.meta dd {
  margin: 0;
}

ul.clean {
  list-style: none;
  padding-left: 0;
}

ul.clean li::before {
  content: "• ";
  color: var(--accent);
}

footer {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: #6b7280;
  border-top: 1px solid #e5e7eb;
  padding-top: 0.75rem;
}

/* Accent elements using gradient */
.accent-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Typography tweaks */
h1, h2, h3 {
  line-height: 1.1;
}
h1 { font-size: 1.75rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.1rem; }
p, li, dd, dt { font-size: 0.98rem; }


/* Local font faces */
@font-face {
  font-family: "PT Root UI";
  src:
    url("../fonts/PT-Root-UI-Regular.web/PT/PT/PT-Root-UI/pt-root-ui_regular.woff2") format("woff2"),
    url("../fonts/PT-Root-UI-Regular.web/PT/PT/PT-Root-UI/pt-root-ui_regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PT Root UI";
  src:
    url("../fonts/PT-Root-UI-Light.web/PT/PT/PT-Root-UI/pt-root-ui_light.woff2") format("woff2"),
    url("../fonts/PT-Root-UI-Light.web/PT/PT/PT-Root-UI/pt-root-ui_light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PT Root UI";
  src:
    url("../fonts/PT-Root-UI-Medium.web/PT/PT/PT-Root-UI/pt-root-ui_medium.woff2") format("woff2"),
    url("../fonts/PT-Root-UI-Medium.web/PT/PT/PT-Root-UI/pt-root-ui_medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PT Root UI";
  src:
    url("../fonts/PT-Root-UI-Bold.web/PT/PT/PT-Root-UI/pt-root-ui_bold.woff2") format("woff2"),
    url("../fonts/PT-Root-UI-Bold.web/PT/PT/PT-Root-UI/pt-root-ui_bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

body,
main,
section,
.card,
.card p,
.card li,
.card dd,
.card dt {
  color: #0f172a !important;  
}

.card h1,
.card h2,
.card h3 {
  color: #0f172a !important;
}

/* А в hero заголовок оставляем белым поверх градиента */
.hero h1 {
  color: #ffffff !important;
}


