/* INFO35 final UI layer. Theme-only overrides; CMS variables and logic are untouched. */
:root {
  --info35-accent: #d92d20;
  --info35-accent-hover: #b42318;
  --info35-text: #1f2937;
  --info35-muted: #667085;
  --info35-line: #e4e7ec;
  --info35-soft: #f8fafc;
  --info35-radius: 10px;
}

html { -webkit-text-size-adjust: 100%; }
body.v6-theme { overflow-x: hidden; color: var(--info35-text); }
.v6-theme *, .v6-theme *::before, .v6-theme *::after { box-sizing: border-box; }
.v6-theme img { max-width: 100%; height: auto; }
.v6-theme input, .v6-theme select, .v6-theme textarea, .v6-theme button { max-width: 100%; }

/* Stable text logo. */
.info35-text-logo {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 180px;
  color: var(--info35-text) !important;
  text-decoration: none !important;
  line-height: 1;
}
.info35-text-logo__name { font-size: clamp(25px, 3vw, 34px); font-weight: 800; letter-spacing: -.04em; }
.info35-text-logo__name span { color: var(--info35-accent); }
.info35-text-logo__caption { margin-top: 5px; color: var(--info35-muted); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }

/* Buttons: preserve readable labels in every state. */
.v6-theme button,
.v6-theme input[type="submit"],
.v6-theme input[type="button"],
.v6-theme .ui_button,
.v6-theme .cnst-btn_main,
.v6-theme .data_entry_button_main,
.v6-theme .elm_btn_action,
.v6-theme .subscribe_form_btn,
.v6-theme .main_search_mono_btn_active,
.v6-theme a.v6-btn-primary,
.v6-theme a.btn_add_item {
  min-height: 42px !important;
  padding: 9px 16px !important;
  overflow: visible !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  text-indent: 0 !important;
  white-space: normal !important;
  text-align: center !important;
  opacity: 1 !important;
}
.v6-theme button:not(.cnst-btn_secd):not(.cnst-btn_norm),
.v6-theme input[type="submit"],
.v6-theme input[type="button"],
.v6-theme .ui_button,
.v6-theme .cnst-btn_main,
.v6-theme .data_entry_button_main,
.v6-theme .elm_btn_action,
.v6-theme .subscribe_form_btn,
.v6-theme .main_search_mono_btn_active,
.v6-theme a.v6-btn-primary {
  border-color: var(--info35-accent) !important;
  background: var(--info35-accent) !important;
}
.v6-theme button:hover,
.v6-theme input[type="submit"]:hover,
.v6-theme input[type="button"]:hover,
.v6-theme .ui_button:hover,
.v6-theme .cnst-btn_main:hover,
.v6-theme .data_entry_button_main:hover,
.v6-theme .elm_btn_action:hover,
.v6-theme .subscribe_form_btn:hover,
.v6-theme .main_search_mono_btn_active:hover,
.v6-theme a.v6-btn-primary:hover { background: var(--info35-accent-hover) !important; color: #fff !important; }
.v6-theme .cnst-btn_secd,
.v6-theme .cnst-btn_norm,
.v6-theme .data_entry_elm_btn {
  border: 1px solid var(--info35-line) !important;
  background: #fff !important;
  color: var(--info35-text) !important;
}
.v6-theme button *, .v6-theme .ui_button *, .v6-theme .cnst-btn_main * { color: inherit !important; opacity: 1 !important; }

/* Category contents: compact text list without decorative squares/icons. */
.v6-theme .category_general_block_base,
.v6-theme .category_general_block_base_vert,
.v6-theme .section_list_category_base,
.v6-theme #public_category_general_block_base {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0 22px !important;
  margin: 0 !important;
}
.v6-theme .category_general_block_data_one,
.v6-theme .section_list_category_first_lvl,
.v6-theme #public_category_general_block_base .category_general_block_data_one {
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.v6-theme .category_general_block_content_one,
.v6-theme #public_category_general_block_base .category_general_block_content_one,
.v6-filter .category_general_block_content_one {
  display: block !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 10px 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--info35-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.v6-theme .category_general_content_one_contr_img,
.v6-theme #public_category_general_block_base .category_general_content_one_contr_img,
.v6-filter .category_general_content_one_contr_img { display: none !important; }
.v6-theme .category_general_block_content_one a,
.v6-theme .category_general_block_data_one a,
.v6-theme #public_category_general_block_base a,
.v6-filter .category_general_block_content_one a {
  display: block !important;
  padding: 2px 0 !important;
  color: var(--info35-text) !important;
  font-size: 15px !important;
  font-weight: 650 !important;
  line-height: 1.35 !important;
  overflow-wrap: anywhere;
}
.v6-theme .category_general_block_content_one a:hover { color: var(--info35-accent) !important; }

/* Cleaner headings. */
.v6-theme .title_main_content h1,
.v6-theme .text_main_content h1,
.v6-theme .text_main_content h2,
.v6-theme .text_main_content h3 { overflow-wrap: anywhere; }
.v6-theme .title_main_content h1 { font-size: clamp(24px, 4vw, 36px) !important; line-height: 1.15 !important; }

/* Avoid expensive decorative effects and layout shifts. */
.v6-theme .v6-panel,
.v6-theme .v6-shortcuts a,
.v6-theme .category_general_block_data_one { transition: border-color .15s ease, background-color .15s ease, color .15s ease !important; }
.v6-theme .v6-shortcuts a { box-shadow: none !important; }

@media (max-width: 980px) {
  .v6-theme .category_general_block_base,
  .v6-theme .category_general_block_base_vert,
  .v6-theme .section_list_category_base,
  .v6-theme #public_category_general_block_base { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .v6-header-row { gap: 12px !important; }
}

@media (max-width: 680px) {
  .info35-text-logo { min-width: 0; }
  .info35-text-logo__name { font-size: 26px; }
  .info35-text-logo__caption { font-size: 9px; letter-spacing: .05em; }
  .v6-theme .category_general_block_base,
  .v6-theme .category_general_block_base_vert,
  .v6-theme .section_list_category_base,
  .v6-theme #public_category_general_block_base { grid-template-columns: 1fr !important; gap: 0 !important; }
  .v6-theme button,
  .v6-theme input[type="submit"],
  .v6-theme input[type="button"],
  .v6-theme .ui_button,
  .v6-theme .cnst-btn_main,
  .v6-theme .data_entry_button_main { min-height: 44px !important; font-size: 15px !important; }
  .v6-user-actions { min-width: 0; }
  .v6-add-button { padding: 8px 12px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .v6-theme *, .v6-theme *::before, .v6-theme *::after { scroll-behavior: auto !important; transition: none !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
