/* ==========================================================================
   custom.css — portable article content styles
   Depends on CSS custom properties (--bg, --white, --dark, --mid, --muted,
   --light, --border, --blue, --green, --gold, --red) defined in :root
   of the active theme's style.css. Never touch this file between themes —
   only update :root variables.
   ========================================================================== */

:root{
	--white: #fff;
/* 	--dark: #111827; */
/* 	--mid: #374151; */
	--muted: #6b7280;
  	--light: #e5e7eb;
	--accent: var(--orange);
/* 	--blue: #0f62d0; */
	--blue: var(--accent);
	--green: #16a34a;
  	--gold: #f59e0b;
	--gold: var(--accent2);
	--red: #dc2626;
	
}

main {
    max-width: 1100px;
    width: 100%;
    margin: 20px auto;
}

.wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr 290px;
    gap: 24px;
}
.sidebar {
    position: sticky;
    top: 72px;
}
.sbox {
    border: 1px solid var(--orange);
}
.stitle {
    padding: 10px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--navy2);
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
    margin-bottom: 12px;
}
/* --------------------------------------------------------------------------
   1. BASE RESET FOR ARTICLE CONTENT
   -------------------------------------------------------------------------- */

article .entry-content,
article .wp-content,
article {
  color: var(--dark);
  font-size: 1rem;
  line-height: 1.75;
  word-break: break-word;
  overflow-wrap: break-word;
}


/* --------------------------------------------------------------------------
   2. HEADINGS
   -------------------------------------------------------------------------- */

article h1,
article h2,
article h3,
article h4,
article h5,
article h6 {
  color: var(--dark);
  font-weight: 700;
  line-height: 1.25;
  margin-top: 2em;
  margin-bottom: 0.6em;
}

article h1 { font-size: 2rem; }
article h2 { font-size: 1.6rem; }
article h3 { font-size: 1.35rem; }
article h4 { font-size: 1.15rem; }
article h5 { font-size: 1rem;   color: var(--mid); }
article h6 { font-size: 0.9rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* first heading needs no top push */
article > h1:first-child,
article > h2:first-child,
article > h3:first-child {
  margin-top: 0;
}

/* decorative underline on h2 */
article h2 {
  padding-bottom: 0.35em;
  border-bottom: 2px solid var(--orange);
}


/* --------------------------------------------------------------------------
   3. PARAGRAPHS & INLINE TEXT
   -------------------------------------------------------------------------- */

article p {
    margin-top: 0;
    margin-bottom: 1.25em;
    color: var(--navy);
}

article p:last-child {
  margin-bottom: 0;
}

article em,
article i {
  font-style: italic;
}

article a {
    color: var(--orange);
    text-decoration: underline;
    transition: opacity 0.15s ease;
}

article a:hover,
article a:focus {
  opacity: 0.75;
  text-decoration: none;
}

article small {
  font-size: 0.85em;
  color: var(--navy);
}

article mark {
  background-color: color-mix(in srgb, var(--orange) 25%, transparent);
  color: var(--navy);
  padding: 0 0.2em;
  border-radius: 2px;
}

article abbr[title] {
  text-decoration: underline dotted;
  cursor: help;
}

article del {
  color: var(--navy);
}


/* --------------------------------------------------------------------------
   4. LISTS — ul / ol / dl
   -------------------------------------------------------------------------- */

article ul,
article ol {
  margin-top: 0;
  margin-bottom: 1.25em;
  padding-left: 1.6em;
  color: var(--mid);
}

article ul { list-style-type: disc; }
article ol { list-style-type: decimal; }

article ul ul,
article ol ol,
article ul ol,
article ol ul {
  margin-top: 0.4em;
  margin-bottom: 0.4em;
  padding-left: 1.4em;
}

article li {
  margin-bottom: 0.4em;
  line-height: 1.7;
}

article li::marker {
  color: var(--blue);
}

/* definition list */
article dl {
  margin-bottom: 1.25em;
}

article dt {
  font-weight: 700;
  color: var(--dark);
  margin-top: 0.75em;
}

article dd {
  margin-left: 1.5em;
  color: var(--mid);
  margin-bottom: 0.4em;
}


/* --------------------------------------------------------------------------
   5. TABLES
   -------------------------------------------------------------------------- */

article table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  margin-bottom: 1.75em;
  font-size: 0.9375rem;

  border-radius: 8px;
  overflow: hidden;          /* clips border-radius on child cells */
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.06);
}

article thead {
  color: var(--white);
}

article thead th,
article thead td
{
  padding: 0.75em 1em;
  text-align: left;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
  border-bottom: 2px solid var(--border);
}

article thead p {
	color: white;
	font-weight: bold;
}

article tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background-color 0.12s ease;
}

article tbody tr:last-child {
  border-bottom: none;
}

article tbody tr:nth-child(even) {
  background-color: var(--bg);
}

article tbody tr:hover {
  background-color: color-mix(in srgb, var(--blue) 6%, transparent);
}

article tbody td {
  padding: 0.7em 1em;
  vertical-align: top;
}

article tfoot td,
article tfoot th {
  padding: 0.65em 1em;
  font-weight: 600;
  color: var(--dark);
  background-color: var(--light);
  border-top: 2px solid var(--border);
}

/* responsive wrapper — drop a <div class="table-wrap"> around wide tables in WP */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.75em;
  border-radius: 8px;
}

.table-wrap table {
  margin-bottom: 0;
}


/* --------------------------------------------------------------------------
   6. BLOCKQUOTE
   -------------------------------------------------------------------------- */

article blockquote {
    margin: 1.75em 0;
    padding: 1em 1.25em 1em 1.5em;
    border-left: 4px solid var(--blue);
    background-color: color-mix(in srgb, var(--blue) 5%, var(--bg2));
    border-radius: 0 6px 6px 0;
    color: var(
  --mid);
    font-style: italic;
}

article blockquote p:last-child {
  margin-bottom: 0;
}

article blockquote cite {
  display: block;
  margin-top: 0.6em;
  font-size: 0.875rem;
  font-style: normal;
  color: var(--muted);
}


/* --------------------------------------------------------------------------
   7. CODE & PRE
   -------------------------------------------------------------------------- */

article code {
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.875em;
  background-color: var(--light);
  color: var(--red);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  border: 1px solid var(--border);
}

article pre {
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.875rem;
  line-height: 1.6;
  background-color: var(--dark);
  color: #e5e7eb;
  padding: 1.25em 1.5em;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 1.75em;
  -webkit-overflow-scrolling: touch;
}

article pre code {
  background: none;
  color: inherit;
  border: none;
  padding: 0;
  font-size: inherit;
}


/* --------------------------------------------------------------------------
   8. HORIZONTAL RULE
   -------------------------------------------------------------------------- */

article hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5em 0;
}


/* --------------------------------------------------------------------------
   9. IMAGES & FIGURES
   -------------------------------------------------------------------------- */

article img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

article figure {
  margin: 1.75em 0;
}

article figcaption {
  font-size: 0.875rem;
  color: var(--muted);
  text-align: center;
  margin-top: 0.5em;
  font-style: italic;
}


/* --------------------------------------------------------------------------
   10. WP UTILITY CLASSES — alignments etc.
   -------------------------------------------------------------------------- */

article .alignleft  { float: left;  margin: 0.25em 1.5em 1em 0; }
article .alignright { float: right; margin: 0.25em 0 1em 1.5em; }
article .aligncenter { display: block; margin-left: auto; margin-right: auto; }
article .alignfull  { width: 100%; }
article .alignwide  { width: calc(100% + 4rem); margin-left: -2rem; }


/* --------------------------------------------------------------------------
   11. NOTICE / CALLOUT HELPERS (use via WP custom HTML block)
   Apply class="notice notice--info|success|warning|danger" to a <div>
   -------------------------------------------------------------------------- */

article .notice {
  padding: 1em 1.25em;
  border-radius: 6px;
  border-left: 4px solid var(--border);
  margin-bottom: 1.5em;
  font-size: 0.9375rem;
  color: var(--mid);
  background-color: var(--bg);
}

article .notice--info {
  border-color: var(--blue);
  background-color: color-mix(in srgb, var(--blue) 7%, var(--white));
}

article .notice--success {
  border-color: var(--green);
  background-color: color-mix(in srgb, var(--green) 7%, var(--white));
}

article .notice--warning {
  border-color: var(--gold);
  background-color: color-mix(in srgb, var(--gold) 10%, var(--white));
}

article .notice--danger {
  border-color: var(--red);
  background-color: color-mix(in srgb, var(--red) 7%, var(--white));
}


/* --------------------------------------------------------------------------
   12. RESPONSIVE — small screens
   -------------------------------------------------------------------------- */

@media (max-width: 640px) {
  article h1 { font-size: 1.6rem; }
  article h2 { font-size: 1.3rem; }
  article h3 { font-size: 1.15rem; }

  article table {
    font-size: 0.875rem;
  }

  article thead th,
  article tbody td,
  article tfoot td {
    padding: 0.55em 0.7em;
  }

  article .alignleft,
  article .alignright {
    float: none;
    margin: 0 0 1em 0;
  }
}

.faq-list {
    display: flex;
    flex-flow: column nowrap;
    gap: 20px;
}

.faq-question {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  list-style: none; /* Firefox */
}
.faq-question::-webkit-details-marker {
  display: none; /* Chrome/Safari */
}

.faq-question::before {
    content: '▶';
    flex-shrink: 0;
    color: var(--accent);
    transition: transform 0.2s ease;
}

details[open] > .faq-question::before {
  transform: rotate(90deg);
}

.faq-item-title {
    display: inline;
    margin: 0;
    font-size: 20px;
}

article img {
    max-width: 100%;
    object-fit: contain;
}

.otp-sidebar {
	list-style:none;
	padding:0;
}

.otp-sidebar li {
    padding: 5px 8px;
}

.otp-sidebar li a {
    text-decoration: none;
    color: var(--navy);
    font-weight: 500;
}
.page-breadcrumb {
    padding: 5px 0;
}

.page-breadcrumb p {
    color: white;
    font-weight: bold;
}

.page-breadcrumb a {
    color: var(--blue);
}

.nav-inner {
  max-width  : 1100px;
  margin     : 0 auto;
  display    : flex;
  align-items: stretch;
  list-style : none;
  gap        : 0;
}
.nav-inner::-webkit-scrollbar { display: none; } /* Chrome/Safari */
.nav-inner > .menu-item {
  position: relative;
  display : flex;
}

.nav-inner > .menu-item > a {
  display        : flex;
  align-items    : center;
  gap            : 5px;
  padding        : 11px 16px;
  font-family    : 'Inter', sans-serif;
  font-size      : 12px;
  font-weight    : 500;
  color          : #9ca3af;
  text-decoration: none;
  white-space    : nowrap;
  border-bottom  : 2px solid transparent;
  transition     : color .2s, border-color .2s;
}

.nav-inner > .menu-item-has-children > a::after {
  content      : '';
  display      : inline-block;
  width        : 5px;
  height       : 5px;
  border-right : 1.5px solid #9ca3af;
  border-bottom: 1.5px solid #9ca3af;
  transform    : rotate(45deg) translateY(-2px);
  transition   : transform .2s, border-color .2s;
  flex-shrink  : 0;
}

.nav-inner > .menu-item > a:hover,
.nav-inner > .menu-item:focus-within > a {
  color       : #fff;
  border-color: var(--gold);
}

.nav-inner > .menu-item > a:hover::after,
.nav-inner > .menu-item:focus-within > a::after {
  border-color: var(--gold);
  transform   : rotate(225deg) translateY(-2px);
}

.nav-inner > .menu-item.current-menu-item > a, .nav-inner > .menu-item.current-menu-ancestor > a, .nav-inner > .menu-item.current-menu-parent > a {
    color: var(--accent);
    border-color: var(--gold);
}

.nav-inner .sub-menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    background: var(--bg);
    border: 1px solid var(--accent);
    border-top: 2px solid var(--gold);
    list-style: none;
    padding: 6px 0;
    margin: 0;
    box-shadow: 0 8px 28px rgba(0,0,0,.5);
    border-radius: 0 0 6px 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    pointer-events: none;
    z-index: 9999;
}
.nav-inner > .menu-item:hover > .sub-menu,
.nav-inner > .menu-item:focus-within > .sub-menu {
  opacity       : 1;
  visibility    : visible;
  transform     : translateY(0);
  pointer-events: auto;
}

.sub-menu .menu-item {
  display: block;
  width  : 100%;
}

.sub-menu .menu-item a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--light);
    text-decoration: none;
    transition: background .15s, color .15s, padding-left .15s;
    white-space: nowrap;
}

.sub-menu .menu-item a::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 1.5px;
    background: var(--accent);
    flex-shrink: 0;
    transition: background .15s, width .15s;
}

.sub-menu .menu-item a:hover {
  background  : #111827;
  color       : #fff;
  padding-left: 22px;
}

.sub-menu .menu-item a:hover::before {
  background: var(--gold);
  width     : 10px;
}

.sub-menu .menu-item.current-menu-item > a {
  color      : var(--gold);
  background : rgba(245, 158, 11, .07);
}

.sub-menu .menu-item.current-menu-item > a::before {
  background: var(--gold);
  width     : 10px;
}

.sub-menu .menu-item + .menu-item {
  border-top: 1px solid rgba(255,255,255,.04);
}
.nav-burger {
    display: none;
    flex-shrink: 0;
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--white);
    transition: color .2s;
}
.nav-burger:hover { color: #fff; }

.nav-burger svg { display: block; }

.nav-burger .icon-close { display: none; }
.nav-burger.is-active .icon-open  { display: none; }
.nav-burger.is-active .icon-close { display: block; }

@media (max-width: 900px) {

	.nav-burger {
    display: flex;
    position: absolute;
    right: 20px;
    top: 20px;
}

.nav-inner {
    flex-direction: column;
    align-items: flex-start;
    overflow-x: visible;
    /* max-height: 0; */
    transition: max-height .35s ease;
    padding-bottom: 0;
    width: 100%;
    height: 40px;
}
	
	.logo-wrap {
    width: 200px;
}

  .nav.is-open .nav-inner {
    max-height    : 100vh;
    overflow-y    : auto;
    padding-bottom: 12px;
  }

  .nav-inner > .menu-item {
    flex-direction: column;
    width         : 100%;
    border-bottom : 1px solid #1f2937;
  }

  .nav-inner > .menu-item > a {
    padding     : 13px 0;
    font-size   : 13px;
    border-bottom: none;
    width       : 100%;
    justify-content: space-between;
  }

  .nav-inner > .menu-item > a:hover,
  .nav-inner > .menu-item:focus-within > a {
    border-color: transparent;
    color       : var(--gold);
  }

  .nav-inner .sub-menu {
    position  : static;
    opacity   : 1;
    visibility: visible;
    transform : none;
    box-shadow: none;
    border    : none;
    border-top: none;
    background: transparent;
    padding   : 0 0 8px 12px;
    display   : none;
  }

  .nav-inner > .menu-item.is-open > .sub-menu { display: flex; }

  .sub-menu .menu-item a {
    padding  : 7px 10px;
    font-size: 12px;
  }

  .sub-menu .menu-item a:hover { padding-left: 14px; }

  .sub-menu .menu-item + .menu-item { border-top: none; }
	
	main {
		max-width: 100%;
	}
	.wrapper {
		gap: 10px;
		max-width: 100%;
		display: flex;
		flex-flow: column nowrap;
	}
}


html, body {
  overflow-x: hidden;
  max-width: 100%;
}

img, video, iframe, embed, object {
  max-width: 100%;
  height: auto;
}

.table-scroll-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  margin-bottom: 24px;
  /* Тонкий скроллбар */
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg2);
}

.table-scroll-wrap::-webkit-scrollbar {
  height: 4px;
}

.table-scroll-wrap::-webkit-scrollbar-track {
  background: var(--bg2);
}

.table-scroll-wrap::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 2px;
}

.table-scroll-wrap table,
.wp-block-table table,
article table,
.entry-content table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  table-layout: auto;
}

.table-scroll-wrap table td,
.table-scroll-wrap table th,
.wp-block-table td,
.wp-block-table th,
article table td,
article table th,
.entry-content table td,
.entry-content table th {
  padding: 12px 16px;
  text-align: left;
  border: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text2);
  vertical-align: top;
  white-space: normal;
  word-break: break-word;
}


.table-scroll-wrap table thead td,
.table-scroll-wrap table thead th,
.wp-block-table thead td,
.wp-block-table thead th,
article table thead td,
article table thead th,
.entry-content table thead td,
.entry-content table thead th {
  background: var(--navy);
  color: var(--orange);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}


.table-scroll-wrap table tbody tr:nth-child(even) td,
article table tbody tr:nth-child(even) td,
.entry-content table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, .02);
}

.table-scroll-wrap table tbody tr:hover td,
article table tbody tr:hover td,
.entry-content table tbody tr:hover td {
  background: rgba(0, 200, 83, .05);
}

@media (max-width: 768px) {
  .table-scroll-wrap::before {
    content: 'scroll →';
    display: block;
    text-align: right;
    font-size: 0.7rem;
    color: var(--orange);
    opacity: 0.5;
    padding-bottom: 4px;
    letter-spacing: 1px;
  }

  .table-scroll-wrap table td,
  .table-scroll-wrap table th {
    padding: 10px 12px;
    font-size: 0.85rem;
  }
}

.error-404 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  min-height: calc(100vh - 64px);
  padding: 60px 24px;
  max-width: 900px;
  margin: 0 auto;
}

.error-404-code {
  font-size: clamp(120px, 20vw, 200px);
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px var(--accent);
  letter-spacing: -8px;
  flex-shrink: 0;
  user-select: none;
  opacity: 0.85;
}

.error-404-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 480px;
}

.error-404-inner .section-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.error-404-inner .entry-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin: 0;
}

.error-404-text {
  font-size: 0.95rem;
  color: var(--text2);
  line-height: 1.7;
  margin: 0;
}
.error-404-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 22px;
  background: var(--accent);
  color: #000;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px !important;
  transition: background .2s, transform .15s;
}

.btn-primary:hover {
  background: var(--accent2);
  text-decoration: none;
  transform: translateY(-1px);
}


.error-404-search {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.error-404-search-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.error-404-search .search-form {
  display: flex;
  gap: 0;
  width: 100%;
}

.error-404-search .search-field {
  flex: 1;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-right: none;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  padding: 10px 14px;
  outline: none;
  transition: border-color .2s;
  border-radius: 6px 0 0 6px !important;
}

.error-404-search .search-field:focus {
  border-color: var(--accent);
}

.error-404-search .search-field::placeholder {
  color: var(--text2);
  opacity: 0.6;
}

.error-404-search .search-submit {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #000;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 10px 18px;
  cursor: pointer;
  transition: background .2s;
  border-radius: 0 6px 6px 0 !important;
  white-space: nowrap;
}

.error-404-search .search-submit:hover {
  background: var(--accent2);
  border-color: var(--accent2);
}

@media (max-width: 680px) {
  .error-404 {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 48px 20px;
    min-height: calc(100vh - 64px);
  }

  .error-404-code {
    font-size: clamp(80px, 25vw, 120px);
    letter-spacing: -4px;
    -webkit-text-stroke: 1.5px var(--accent);
  }

  .error-404-inner {
    gap: 16px;
  }

  .error-404-search .search-form {
    flex-direction: column;
    gap: 8px;
  }

  .error-404-search .search-field {
    border-right: 1px solid var(--border);
    border-radius: 6px !important;
  }

  .error-404-search .search-submit {
    border-radius: 6px !important;
    text-align: center;
  }
}
