@charset "UTF-8";
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
/* Document
   ========================================================================== */
/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
   ========================================================================== */
/**
 * Remove the margin in all browsers.
 */
body {
  margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
  display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */
/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/* Text-level semantics
   ========================================================================== */
/**
 * Remove the gray background on active links in IE 10.
 */
a {
  background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  text-decoration: underline dotted; /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */
small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
   ========================================================================== */
/**
 * Remove the border on images inside links in IE 10.
 */
img {
  border-style: none;
}

/* Forms
   ========================================================================== */
/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
  /* 1 */
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
  /* 1 */
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
  appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */
legend {
  box-sizing: border-box; /* 1 */
  color: inherit; /* 2 */
  display: table; /* 1 */
  max-width: 100%; /* 1 */
  padding: 0; /* 3 */
  white-space: normal; /* 1 */
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
  vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
  overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
  -webkit-appearance: textfield; /* 1 */
  appearance: textfield;
  outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/* Interactive
   ========================================================================== */
/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
  display: list-item;
}

/* Misc
   ========================================================================== */
/**
 * Add the correct display in IE 10+.
 */
template {
  display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
  display: none;
}

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

html {
  height: 100%;
}

body {
  /* padding-top: 70px; Добавлена строка */
  line-height: 1;
}

ol,
ul {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}

/* Применение шрифта Montserrat для всего сайта */
body,
body * {
  font-family: "Montserrat", sans-serif;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

* {
  box-sizing: border-box;
}

.top-section1 {
  z-index: 1000; /* Убедитесь, что это значение достаточно высокое */
}

.top-section {
  width: 100%;
  margin-left: 0;
  margin-bottom: 1%;
  display: flex;
  gap: 20px;
}

@media (max-width: 768px) {
  body {
    padding-top: 70px;
  }
  .top-section {
    flex-direction: column;
    margin-top: 150px;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  .top-section .container-left,
  .top-section .container-right {
    min-width: 100%;
  }
}

@media (max-width: 480px) {
  body {
    padding-top: 50px;
  }

  .top-section1 {
    height: 50px;
  }

  .nav-menu__list-item {
    flex: 0 0 calc(50% - 4px);
  }

  .nav-menu__list-item a {
    padding: 6px 2px;
    font-size: 10px;
  }
  .top-section {
    margin-top: 90px;
  }
}

@media (max-width: 400px) {
  body {
    padding-top: 45px;
  }

  .top-section1 {
    height: 45px;
  }

  .nav-menu__list-item {
    flex: 0 0 calc(50% - 2px);
  }

  .nav-menu__list-item a {
    font-size: 9px;
    padding: 5px 1px;
    line-height: 1.1;
  }
}

/* Для экстремально маленьких экранов */
@media (max-width: 360px) {
  body {
    padding-top: 40px;
  }

  .top-section1 {
    height: 40px;
  }

  .nav-menu__list-item a {
    font-size: 8px;
    padding: 4px 1px;
  }
}

@media (max-width: 320px) {
  body {
    padding-top: 35px;
  }

  .top-section1 {
    height: 35px;
  }

  .nav-menu__list-item {
    flex: 0 0 100%;
    margin-bottom: 2px;
  }

  .nav-menu__list-item a {
    font-size: 9px;
    padding: 4px 2px;
    text-align: center;
  }

  /* Вертикальное меню для очень маленьких экранов */
  /* .nav-menu__list {
    flex-direction: column;
    gap: 2px;
  } */
}

.container-left {
  position: relative;
  width: 50%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.container-right {
  position: relative;
  width: 50%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0 auto;
}

.chart_ {
  position: relative;
  width: 100%;
  max-height: 400px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.text-block {
  position: relative;
  width: 100%;
  min-height: fit-content;
  padding: 15px;
  background-color: white;
  border-radius: 8px;
  font-family: Times New Roman, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  margin-top: 0;
  flex-shrink: 0;
}

.table-container {
  width: 100%;
  height: 100%;
  overflow: auto;
  margin: 20px 0;
  overflow-x: auto;
}

#invest {
  width: 95%;
  height: 95%;
  border-collapse: collapse;
}
#invest th:nth-child(1),
#invest #invest td:nth-child(1) {
  width: 60%;
}
#invest th:nth-child(2),
#invest #invest td:nth-child(2) {
  width: 40%;
  text-align: right;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 99%;
  margin-left: 1%;
}

.table-caption {
  font-weight: bold;
  text-align: left;
  font-size: 1em;
  padding: 0.1% 0.1%;
}

td {
  border: 1px solid #696969;
  padding: 8px;
}
td .table-fields__name {
  width: 20%;
  text-align: left;
}
td .cell {
  width: 10%;
  text-align: right;
  vertical-align: middle;
}
td .cell__total {
  width: 10%;
  vertical-align: middle;
  font-weight: bold;
}
td .cell__total-effectiveness {
  width: 10%;
  vertical-align: middle;
  font-weight: bold;
  font-style: italic;
}

/* .cell-foot {
  font-size: 70%;
  border: none;
} */

.cell-foot {
  font-size: 0.75rem;
  line-height: 1.3;
  color: #6c757d;
  padding: 1rem;
  text-align: justify;
  background-color: #f8f9fa;
  border-top: 2px solid #dee2e6;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
  .cell-foot {
    font-size: 0.7rem;
    padding: 0.75rem;
  }
}

th {
  border: 1px solid #696969;
  text-align: center;
  vertical-align: middle;
  font-weight: bold;
  padding: 8px;
}
th .table-fields__name {
  width: 20%;
  text-align: left;
  vertical-align: middle;
}
th .cell {
  width: 10%;
  text-align: right;
  vertical-align: middle;
}
th .cell__total {
  width: 10%;
  text-align: right;
  vertical-align: middle;
  font-weight: bold;
}
th .cell__total-effectiveness {
  width: 10%;
  vertical-align: middle;
  font-weight: bold;
  font-style: italic;
}

tr .table-fields__name {
  width: 20%;
  text-align: left;
  vertical-align: middle;
}
tr .cell {
  width: 10%;
  text-align: right;
  vertical-align: middle;
}
tr .cell__total {
  width: 10%;
  vertical-align: middle;
  font-weight: bold;
}
tr .cell__total-effectiveness {
  width: 10%;
  vertical-align: middle;
  font-weight: bold;
  font-style: italic;
}

h1 {
  font-weight: bold;
  border: none;
  border-radius: 0.3rem;
  border: 2px solid #000000;
  width: 100%;
  background-color: #000000;
  color: #ffffff;
  font-size: 1.5rem;
  font-family: inherit;
  font-weight: bold;
  padding: 0.5rem 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  box-sizing: border-box;
  margin: 0 0 20px 0;
  text-align: center; /* Центрирование текста */
  line-height: 1.2; /* Межстрочный интервал для многострочного текста */
}

.input {
  margin-bottom: 15px;
}

.input-area {
  margin-bottom: 15px;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

input {
  width: 50% !important;
  border: 0.75px solid #000;
  border-radius: 2px;
  padding: 4px 8px;
  text-align: right;
  box-sizing: border-box;
}

#number1 {
  width: 25% !important;
}

#number2 {
  width: 25% !important;
}

#number5,
#number4 {
  width: 25% !important;
}

label {
  margin-right: auto;
  min-width: 200px;
  flex-grow: 1;
}

.checkbox-area {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 15px;
  padding: 0 !important;
  margin: 0 !important;
}

.checkbox-area label {
  margin: 0 !important;
  padding: 0 !important;
  order: 1;
  min-width: auto !important;
  flex-grow: 0 !important;
}

#myCheckbox {
  accent-color: black;
  width: 15px;
  height: 15px;
  margin: 0 !important;
  padding: 0 !important;
  flex-shrink: 0;
  order: 2;
  margin-left: -3px;
}

.out-area {
  margin-bottom: 15px;
}
.out-area p {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  padding: 8px 0;
  gap: 20px;
  height: 20px;
  align-items: center;
  line-height: 24px;
}

span {
  text-align: right;
  font-weight: normal;
  padding: 1px;
}
span #out2 {
  color: black;
}

.btn {
  border: none;
  border-radius: 0.3rem;
  border: 2px solid #000000;
  width: 100%;
  background-color: #000000;
  color: #ffffff;
  font-size: 1.5rem;
  font-family: inherit;
  font-weight: bold;
  padding: 0.5rem 0.5rem;
  cursor: pointer;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  box-sizing: border-box;
  margin: 0;
}

.value-group {
  display: flex !important;
  gap: 5px !important;
  align-items: center !important;
  justify-content: flex-end !important;
  border: 0.75px solid #000 !important;
  border-radius: 2px !important;
  padding: 0.5px 8px !important;
  min-width: 50% !important;
  text-align: center !important;
  box-sizing: border-box !important;
}

.red {
  color: #ff0000;
}

.black {
  color: #000000;
}

.tooltiptext {
  visibility: hidden;
  position: relative;
  top: 100%;
  color: #ff0000;
  font-weight: bold;
  font-style: italic;
}

.error {
  border: 2px solid #ff0000;
}

.show {
  visibility: visible;
  opacity: 1;
}

/* Стили для таблицы продаж */
#salesTable {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin: 10px 0;
  table-layout: fixed;
}

#salesTable caption {
  font-weight: bold;
  text-align: left;
  font-size: 14px;
  padding: 8px 0;
  margin-bottom: 5px;
}

#salesTable th {
  border: 1px solid #696969;
  padding: 6px 4px;
  text-align: center;
  vertical-align: middle;
  font-weight: bold;
  font-size: 11px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  line-height: 1.2;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  overflow: hidden;
  text-overflow: ellipsis;
}

#salesTable td {
  border: 1px solid #696969;
  padding: 6px 4px;
  vertical-align: middle;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Первый столбец (Номер года) - по центру, узкий */
#salesTable th:first-child,
#salesTable td:first-child {
  text-align: center;
  width: 50px;
  min-width: 50px;
  max-width: 50px;
}

/* Остальные столбцы - прижать вправо, равномерная ширина */
#salesTable td:not(:first-child) {
  text-align: right;
  width: auto;
  min-width: 80px;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  #salesTable {
    font-size: 10px;
    min-width: 600px;
  }
  #salesTable th,
  #salesTable td {
    padding: 4px 2px;
  }
  #salesTable caption {
    font-size: 12px;
  }
  .table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  /* На мобильных делаем первый столбец уже */
  #salesTable th:first-child,
  #salesTable td:first-child {
    width: 40px;
    min-width: 40px;
    max-width: 40px;
  }
  #salesTable th:not(:first-child),
  #salesTable td:not(:first-child) {
    min-width: 70px;
  }
}
@media (max-width: 480px) {
  #salesTable {
    font-size: 9px;
    min-width: 500px;
  }
  #salesTable th,
  #salesTable td {
    padding: 3px 1px;
  }
  /* На очень маленьких экранах еще уже */
  #salesTable th:first-child,
  #salesTable td:first-child {
    width: 35px;
    min-width: 35px;
    max-width: 35px;
  }
  #salesTable th:not(:first-child),
  #salesTable td:not(:first-child) {
    min-width: 60px;
  }
}
/*Стилизация навигационного меню*/
.top-section1 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #dcdcdc;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}
.top-section1__nav-container {
  width: 95%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.top-section1__header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px 0;
}
.top-section1__nav {
  width: 100%;
}

.nav-menu__list {
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}
.nav-menu__list-item {
  flex: 1;
  text-align: center;
}
.nav-menu__list-item a {
  display: block;
  text-decoration: none;
  color: #000000;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 8px;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}
.nav-menu__list-item a:hover {
  color: #f7b70b;
  border-bottom-color: #f7b70b;
}

/* Дополнительно: плавные переходы */
.top-section1,
.nav-menu__list-item a,
body {
  transition: all 0.3s ease;
}

@media (max-width: 1024px) {
  .nav-menu__list {
    justify-content: space-around;
  }
  .nav-menu__list-item {
    flex: none;
  }
  .nav-menu__list-item a {
    font-size: 13px;
    padding: 10px 6px;
  }
}
@media (max-width: 768px) {
  .top-section__header {
    padding: 10px 0;
  }
  .nav-menu__list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
  }
  .nav-menu__list-item {
    flex: 0 0 calc(33.333% - 10px);
    margin-bottom: 5px;
  }
  .nav-menu__list-item a {
    font-size: 12px;
    padding: 8px 4px;
    text-align: center;
    border-radius: 6px;
    background-color: rgb(181.75, 181.75, 181.75);
  }
  .nav-menu__list-item a:hover {
    background-color: #f7b70b;
  }
}
@media (max-width: 480px) {
  .nav-menu__list-item {
    flex: 0 0 calc(50% - 10px);
  }
  .nav-menu__list-item a {
    font-size: 11px;
    padding: 6px 3px;
  }
}
.nav-menu__list-item a.active {
  color: #f7b70b;
  border-bottom-color: #f7b70b;
  font-weight: 700;
}

body {
  padding-top: 70px;
}
@media (max-width: 768px) {
  body {
    padding-top: 60px;
  }
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
@media (max-width: 768px) {
  html {
    scroll-padding-top: 70px;
  }
}

/* Стили для таблицы calculatingSales */
#calculatingSales {
  width: 100%;
  overflow-x: auto;
}

#calculatingSales table {
  border-collapse: collapse;
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  table-layout: fixed;
}

#calculatingSales caption {
  font-weight: bold;
  text-align: left;
  font-size: 1em;
  padding: 8px 0;
  margin-bottom: 5px;
}

#calculatingSales th,
#calculatingSales td {
  border: 1px solid #696969;
  padding: 8px;
  vertical-align: middle;
  word-wrap: break-word;
  overflow-wrap: break-word;
  background-color: #ffffff;
  font-size: 14px; /* Единый размер шрифта */
}

#calculatingSales th {
  text-align: center; /* Все заголовки по центру */
  font-weight: bold;
}

#calculatingSales td {
  text-align: right;
}

/* Первый столбец (Номер года) - по центру, узкий */
#calculatingSales td:first-child,
#calculatingSales th:first-child {
  width: 60px;
  min-width: 60px;
  max-width: 60px;
}

/* Убираем выравнивание вправо для заголовков */
#calculatingSales th:not(:first-child) {
  text-align: center; /* Заголовки по центру */
  width: auto;
  min-width: 80px;
}

/* Для ячеек данных оставляем выравнивание вправо */
#calculatingSales td:not(:first-child) {
  text-align: right;
  width: auto;
  min-width: 80px;
}

/* Перенос текста в заголовках */
#calculatingSales th {
  white-space: normal;
  line-height: 1.2;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  #calculatingSales table {
    font-size: 12px;
    min-width: 600px;
  }

  #calculatingSales th,
  #calculatingSales td {
    padding: 6px 4px;
    font-size: 12px; /* Единый размер шрифта для мобильных */
  }

  #calculatingSales caption {
    font-size: 12px;
  }

  #calculatingSales th:first-child,
  #calculatingSales td:first-child {
    width: 50px;
    min-width: 50px;
    max-width: 50px;
  }

  #calculatingSales th:not(:first-child),
  #calculatingSales td:not(:first-child) {
    min-width: 70px;
  }
}

@media (max-width: 480px) {
  #calculatingSales table {
    font-size: 11px;
    min-width: 500px;
  }

  #calculatingSales th,
  #calculatingSales td {
    padding: 4px 2px;
    font-size: 11px; /* Единый размер шрифта для маленьких экранов */
  }

  #calculatingSales th:first-child,
  #calculatingSales td:first-child {
    width: 45px;
    min-width: 45px;
    max-width: 45px;
  }

  #calculatingSales th:not(:first-child),
  #calculatingSales td:not(:first-child) {
    min-width: 60px;
  }
}

/* Существующие стили - НЕ ТРОГАЕМ */
h2 {
  font-weight: bold;
}

h3 {
  font-weight: bold;
}

h4 {
  font-weight: bold;
}

.text-block {
  font-family: inherit;
  line-height: 1.6;
  color: #333;
}

.text-block h2,
.text-block h3,
.text-block h4 {
  color: #000;
  margin: 1.5rem 0 1rem 0;
}

.anchor-link,
.anchor-link-title {
  text-decoration: underline;
  color: inherit;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.anchor-link:hover,
.anchor-link-title:hover {
  opacity: 0.7;
  text-decoration: underline;
}

.anchor-link-title {
  display: block;
  margin: 1.5rem 0 1rem 0;
}

.text-block p {
  margin: 0.8rem 0;
  text-align: justify;
}

.text-block ul {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

.text-block li {
  margin: 0.3rem 0;
}

.text-block ul ul {
  margin: 0.3rem 0;
  padding-left: 1.5rem;
}

/* Адаптивность */
@media (max-width: 768px) {
  .text-block {
    font-size: 14px;
    line-height: 1.5;
    padding: 0 10px;
  }

  .text-block h2 {
    font-size: 1.4rem;
    margin: 1.2rem 0 0.8rem 0;
  }

  .text-block h3,
  .text-block h4 {
    font-size: 1.2rem;
    margin: 1rem 0 0.8rem 0;
  }

  .text-block p {
    margin: 0.6rem 0;
  }

  .text-block ul {
    padding-left: 1.2rem;
  }
}

@media (max-width: 480px) {
  .text-block {
    font-size: 13px;
  }

  .text-block h2 {
    font-size: 1.3rem;
  }

  .text-block h3,
  .text-block h4 {
    font-size: 1.1rem;
  }

  .text-block ul {
    padding-left: 1rem;
  }

  .text-block {
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
  }
}

.container-left,
.container-right {
  width: 100%;
}

@media (min-width: 769px) {
  .container-left,
  .container-right {
    width: 50%;
    float: left;
    padding: 0 15px;
    box-sizing: border-box;
  }

  .container-left::after,
  .container-right::after {
    content: "";
    display: table;
    clear: both;
  }
}

@media (max-width: 320px) {
  .text-block {
    font-size: 12px;
  }

  .text-block h2 {
    font-size: 1.2rem;
  }

  .text-block h3,
  .text-block h4 {
    font-size: 1rem;
  }
}
.contacts-button {
  margin-bottom: 20px;
}

.anchor-link-contacts {
  font-weight: bold;
  border: none;
  border-radius: 0.3rem;
  border: 2px solid #000000;
  width: 100%;
  background-color: #000000;
  color: #ffffff;
  font-size: 1.5rem;
  font-family: inherit;
  font-weight: bold;
  padding: 0.5rem 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  box-sizing: border-box;
  margin: 0 0 10px 0;
}

.disclaimer {
  font-size: 12px;
  color: #666;
  text-align: center;
  padding: 15px;
  border-top: 1px solid #eee;
  margin-top: 10px;
}

.disclaimer p {
  margin: 0;
  line-height: 1.4;
}

/* ===== ОСНОВНЫЕ АДАПТИВНЫЕ СТИЛИ ===== */
@media (max-width: 1200px) {
  .top-section {
    width: 98%;
    margin-left: 1%;
  }
}

@media (max-width: 992px) {
  .top-section {
    flex-direction: column;
    gap: 15px;
  }

  .container-left,
  .container-right {
    width: 100% !important;
    float: none;
  }

  /* Графики на планшетах */
  .chart_ {
    max-height: 350px;
    min-height: 300px;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 60px;
  }

  /* Навигационное меню */
  .nav-menu__list {
    flex-wrap: wrap;
    gap: 5px;
  }

  .nav-menu__list-item {
    flex: 0 0 calc(50% - 10px);
    margin-bottom: 5px;
  }

  .nav-menu__list-item a {
    font-size: 12px;
    padding: 10px 5px;
    text-align: center;
  }

  /* Формы ввода */
  .input-area {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .input-area label {
    min-width: 100%;
    margin-bottom: 5px;
  }

  .input-area input {
    width: 100% !important;
  }

  #number1,
  #number2,
  #number4,
  #number5 {
    width: 100% !important;
  }

  /* Вывод данных */
  .out-area p {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    height: auto;
    padding: 10px 0;
  }

  .value-group {
    min-width: 100% !important;
    justify-content: flex-start !important;
  }

  /* Текстовые блоки */
  .text-block {
    padding: 15px 10px;
    font-size: 14px;
  }

  .text-block h2 {
    font-size: 1.3rem;
  }

  .text-block h3 {
    font-size: 1.2rem;
  }

  .text-block h4 {
    font-size: 1.1rem;
  }

  /* Графики */
  .chart_ {
    max-height: 300px;
    min-height: 250px;
  }

  /* Кнопки */
  .btn,
  .contacts-button {
    font-size: 1.2rem;
    padding: 0.4rem;
    height: 45px;
  }
}

@media (max-width: 576px) {
  body {
    padding-top: 10px;
  }

  .top-section1 {
    height: 55px;
  }

  .nav-menu__list {
    gap: 3px;
  }

  .nav-menu__list-item {
    flex: 0 0 calc(50% - 6px);
    margin-bottom: 3px;
  }

  .nav-menu__list-item a {
    font-size: 11px;
    padding: 8px 3px;
    line-height: 1.2;
  }

  /* Заголовки */
  h1 {
    font-size: 1.2rem;
    height: 40px;
    padding: 0.3rem;
  }

  /* Таблицы */
  .table-container {
    margin: 10px 0;
    overflow-x: auto;
  }

  table {
    font-size: 11px;
    min-width: 600px;
  }

  th,
  td {
    padding: 6px 3px;
  }

  /* Графики */
  .chart_ {
    max-height: 250px;
    min-height: 200px;
  }

  /* Текст */
  .text-block {
    font-size: 13px;
    line-height: 1.4;
  }

  .text-block h2 {
    font-size: 1.2rem;
  }

  .text-block h3 {
    font-size: 1.1rem;
  }

  .text-block h4 {
    font-size: 1rem;
  }

  /* Формы */
  .input-area {
    margin-bottom: 12px;
  }

  input {
    padding: 8px;
    font-size: 14px; /* Увеличиваем для удобства на мобильных */
  }

  /* Чекбокс */
  .checkbox-area {
    gap: 10px;
  }

  #myCheckbox {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 480px) {
  body {
    padding-top: 50px;
  }

  /* Навигация */
  .top-section1 {
    width: 100%;
  }

  .nav-menu__list-item a {
    font-size: 10px;
    padding: 6px 2px;
  }

  /* Заголовки графиков */
  .chartjs-size-monitor,
  .chartjs-render-monitor {
    transform: scale(0.9);
    transform-origin: center;
  }

  /* Текстовые блоки */
  .text-block {
    padding: 12px 8px;
    font-size: 12px;
  }

  .text-block ul {
    padding-left: 1rem;
  }

  /* Кнопки */
  .btn,
  .contacts-button {
    font-size: 1.1rem;
    height: 40px;
  }

  /* Футер */
  .disclaimer {
    font-size: 11px;
    padding: 10px;
  }
}

@media (max-width: 360px) {
  h1 {
    font-size: 1.2rem;
    padding: 0.7rem 0.4rem;
  }
  /* Экстремально маленькие экраны */
  .text-block {
    font-size: 11px;
  }

  .text-block h2 {
    font-size: 1.1rem;
  }

  .text-block h3 {
    font-size: 1rem;
  }

  .nav-menu__list-item a {
    font-size: 9px;
    padding: 5px 1px;
  }

  .chart_ {
    max-height: 200px;
    min-height: 180px;
  }
}

/* ===== СПЕЦИФИЧНЫЕ ИСПРАВЛЕНИЯ ДЛЯ ГРАФИКОВ ===== */
@media (max-width: 768px) {
  /* Chart.js адаптация */
  .chartjs-render-monitor {
    max-width: 100% !important;
    height: auto !important;
  }

  /* Контейнеры для графиков */
  .container-left,
  .container-right {
    overflow: hidden;
  }
}

/* ===== УЛУЧШЕНИЯ ДЛЯ ТАБЛИЦ ===== */
@media (max-width: 768px) {
  /* Принудительная горизонтальная прокрутка для таблиц */
  .table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 15px -10px;
    padding: 0 10px;
  }

  /* Улучшение читаемости таблиц */
  #calculatingSales,
  #salesTable,
  #ProfitAndLoss {
    font-size: 11px;
  }

  #calculatingSales th,
  #calculatingSales td,
  #salesTable th,
  #salesTable td {
    padding: 4px 2px;
  }
}

/* ===== УЛУЧШЕНИЯ ДЛЯ ФОРМ ===== */
@media (max-width: 768px) {
  /* Увеличиваем область клика для инпутов */
  input[type="number"],
  input[type="text"] {
    min-height: 44px; /* Минимальный размер для удобного касания */
    font-size: 16px; /* Предотвращает zoom в iOS */
  }

  /* Чекбокс большего размера */
  #myCheckbox {
    width: 22px;
    height: 22px;
    min-width: 22px;
  }
}

/* ===== ПРЕДОТВРАЩЕНИЕ ГИГАНТСКИХ ШРИФТОВ НА IOS ===== */
@media (max-width: 768px) {
  input,
  select,
  textarea {
    font-size: 16px !important; /* Фиксированный размер для iOS */
  }
}

/* ===== ПЛАВНЫЕ ПЕРЕХОДЫ ===== */
.container-left,
.container-right,
.text-block,
.chart_,
.table-container {
  transition: all 0.3s ease;
}

/* ===== УЛУЧШЕНИЯ ДОСТУПНОСТИ ===== */
@media (max-width: 768px) {
  /* Увеличиваем область клика для ссылок */
  .anchor-link,
  .anchor-link-title {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 5px 0;
  }

  /* Улучшаем видимость фокуса */
  a:focus,
  button:focus,
  input:focus {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
  }
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Отступ при скролле к якорям */
}

/*---------------ДЛЯ АДАПТАЦИИ ГРАФИКОВ----------------*/
/* Базовые стили для контейнеров графиков */
.chart-container {
  position: relative;
  height: 400px;
  width: 100%;
}

@media (max-width: 768px) {
  .chart-container {
    height: 350px;
  }
}

@media (max-width: 480px) {
  .chart-container {
    height: 300px;
  }

  .chartjs-render-monitor {
    font-size: 10px !important;
  }
}

@media (max-width: 360px) {
  .chart-container {
    height: 250px;
  }
}

@media (max-width: 320px) {
  .chart-container {
    height: 220px;
  }

  /* Скрываем легенду на очень маленьких экранах */
  .chartjs-legend {
    display: none !important;
  }
}

/* Улучшаем читаемость текста на мобильных */
.chartjs-title {
  text-align: center;
  word-wrap: break-word;
}

/*-------------------------------------------------------------*/

/* ОСНОВНЫЕ СТИЛИ ДЛЯ СТРАНИЦЫ ПОЛИТИКИ */
/* Общие стили для всего контента страницы */
body.privacy-page .main,
body.privacy-page header {
  max-width: 800px; /* Ограничение ширины для всего контента */
  margin-left: auto; /* Центрирование блока */
  margin-right: auto; /* Центрирование блока */
  padding: 0 15px; /* Защитные отступы по бокам для мобильных */
  box-sizing: border-box; /* Чтобы padding не увеличивал общую ширину */
}

/* Стили для заголовка h5 */
body.privacy-page h5.privacy-title {
  font-size: clamp(1.3rem, 4vw, 2rem);
  text-align: center;
  color: #333;
  margin-bottom: 1em;
  line-height: 1.2;
}

/* Стили для текста (p) и header */
body.privacy-page .main p,
body.privacy-page header {
  font-size: clamp(1rem, 3vw, 1.125rem); /* Для p и header одинаковый размер */
  line-height: 1.6;
  color: #555;
  margin-bottom: 1em;
}

/* Индивидуальные стили ONLY для header */
body.privacy-page header {
  display: block;
  text-align: center; /* Только header центрируем по тексту */
  padding: 15px 0; /* Индивидуальные отступы для header */
}

/* Индивидуальные стили ONLY для параграфов (p) */
body.privacy-page .main p {
  text-align: justify; /* Только параграфы выравниваем по ширине */
}

/* Адаптация для мобильных */
@media (max-width: 480px) {
  body.privacy-page .main p {
    text-align: left; /* На мобильных убираем выравнивание по ширине */
  }
}

/* ==================== СТИЛИ ДЛЯ ФОРМЫ BITRIX24 ==================== */

/* Основной контейнер формы */
#b24-form-container {
  width: 100%;
  max-width: 500px;
  margin: 20px auto;
  padding: 0;
}

/* Обертка формы Bitrix24 */
#b24-form-container .b24-form-wrapper {
  /* background: #ffffff; */
  border-radius: 12px;
  padding: 25px;
  /* box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1); */
  /* border: 1px solid #e0e0e0; */
}

/* Заголовок формы */
#b24-form-container .b24-form-header {
  text-align: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  /* border-bottom: 2px solid #000000; */
}

#b24-form-container .b24-form-header-title {
  /* color: #000000 !important; */
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  margin: 0 !important;
  font-family: inherit !important;
}

/* Поля формы */
#b24-form-container .b24-form-field {
  margin-bottom: 20px;
  position: relative;
}

#b24-form-container .b24-form-field-label {
  display: block;
  margin-bottom: 8px;
  /* color: #000000 !important; */
  font-weight: 600 !important;
  font-size: 14px !important;
  font-family: inherit !important;
}

#b24-form-container .b24-form-control {
  width: 100% !important;
  padding: 14px 16px !important;
  /* border: 2px solid #000000 !important; */
  border-radius: 6px !important;
  font-size: 16px !important;
  font-family: inherit !important;
  /* color: #000000 !important; */
  /* background: #ffffff !important; */
  transition: all 0.3s ease !important;
  box-sizing: border-box !important;
}

#b24-form-container .b24-form-control:focus {
  outline: none !important;
  /* border-color: #000000 !important; */
  /* box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1) !important; */
}

/* Кнопка отправки - ЧЕРНАЯ */
#b24-form-container .b24-form-btn {
  width: 100% !important;
  padding: 16px !important;
  /* background: #000000 !important; */
  color: #ffffff !important;
  /* border: 2px solid #000000 !important; */
  border-radius: 6px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  font-family: inherit !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

#b24-form-container .b24-form-btn:hover {
  /* background: #333333 !important;
  border-color: #333333 !important; */
  transform: translateY(-1px);
}

#b24-form-container .b24-form-btn:active {
  transform: translateY(0);
}

/* Сообщения об ошибках */
#b24-form-container .b24-form-field-error {
  color: #dc3545 !important;
  font-size: 12px !important;
  margin-top: 5px !important;
  font-weight: 500 !important;
}

/* Успешное сообщение */
#b24-form-container .b24-form-success {
  background: #d4edda !important;
  border: 1px solid #c3e6cb !important;
  color: #155724 !important;
  padding: 15px !important;
  border-radius: 6px !important;
  text-align: center !important;
  margin-top: 20px !important;
}
*/

/* Чекбоксы и радиокнопки */
 #b24-form-container .b24-form-checkbox-label,
#b24-form-container .b24-form-radio-label {
  color: #000000 !important;
  font-weight: 500 !important;
  font-family: inherit !important;
}

/* ==================== УСИЛЕННАЯ АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ ==================== */

@media (max-width: 1024px) {
  #b24-form-container {
    max-width: 90%;
    margin: 20px auto;
  }
}

@media (max-width: 900px) {
  #b24-form-container {
    max-width: 95%;
  }

  #b24-form-container .b24-form-wrapper {
    padding: 22px;
  }
}

/* Планшеты и большие телефоны */
@media (max-width: 767px) {
  #b24-form-container {
    max-width: 100% !important;
    margin: 15px 0 !important;
    padding: 0 5px !important;
  }

  #b24-form-container .b24-form-wrapper {
    padding: 25px 20px !important;
    border-radius: 12px !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 480px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
  }

  #b24-form-container .b24-form-header-title {
    font-size: 1.4rem !important;
    line-height: 1.3 !important;
  }

  #b24-form-container .b24-form-control {
    padding: 16px 18px !important;
    font-size: 18px !important; /* Увеличиваем для мобильных */
    min-height: 56px !important; /* Достаточная высота для касания */
    border-width: 2px !important;
  }

  #b24-form-container .b24-form-btn {
    padding: 18px !important;
    font-size: 18px !important;
    min-height: 60px !important;
    border-width: 2px !important;
  }

  #b24-form-container .b24-form-field-label {
    font-size: 16px !important;
    margin-bottom: 10px !important;
  }

  #b24-form-container .b24-form-field {
    margin-bottom: 25px !important;
  }
}

/* Средние телефоны */
@media (max-width: 480px) {
  #b24-form-container {
    padding: 0 8px !important;
  }

  #b24-form-container .b24-form-wrapper {
    padding: 22px 18px !important;
    border-radius: 10px !important;
    max-width: 100% !important;
  }

  #b24-form-container .b24-form-header-title {
    font-size: 1.3rem !important;
    padding-bottom: 12px !important;
  }

  #b24-form-container .b24-form-control {
    padding: 14px 16px !important;
    font-size: 16px !important;
    min-height: 52px !important;
  }

  #b24-form-container .b24-form-btn {
    padding: 16px !important;
    font-size: 16px !important;
    min-height: 56px !important;
  }

  #b24-form-container .b24-form-field-label {
    font-size: 15px !important;
  }
}

/* Маленькие телефоны */
@media (max-width: 375px) {
  #b24-form-container {
    padding: 0 5px !important;
  }

  #b24-form-container .b24-form-wrapper {
    padding: 20px 15px !important;
    border-radius: 8px !important;
  }

  #b24-form-container .b24-form-header-title {
    font-size: 1.2rem !important;
  }

  #b24-form-container .b24-form-control {
    padding: 12px 14px !important;
    font-size: 16px !important;
    min-height: 48px !important;
  }

  #b24-form-container .b24-form-btn {
    padding: 14px !important;
    font-size: 15px !important;
    min-height: 52px !important;
  }

  #b24-form-container .b24-form-field-label {
    font-size: 14px !important;
  }

  #b24-form-container .b24-form-field {
    margin-bottom: 20px !important;
  }
}

/* Очень маленькие телефоны */
@media (max-width: 320px) {
  #b24-form-container .b24-form-wrapper {
    padding: 18px 12px !important;
  }

  #b24-form-container .b24-form-header-title {
    font-size: 1.1rem !important;
  }

  #b24-form-container .b24-form-control {
    padding: 11px 13px !important;
    font-size: 15px !important;
  }

  #b24-form-container .b24-form-btn {
    padding: 13px !important;
    font-size: 14px !important;
  }

  #b24-form-container .b24-form-field-label {
    font-size: 13px !important;
  }
}

/* Особые стили для landscape ориентации */
@media (max-width: 900px) and (orientation: landscape) {
  #b24-form-container {
    max-width: 90% !important;
    margin: 10px auto !important;
  }

  #b24-form-container .b24-form-wrapper {
    padding: 18px !important;
  }

  #b24-form-container .b24-form-field {
    margin-bottom: 15px !important;
  }

  #b24-form-container .b24-form-control {
    min-height: 44px !important;
    padding: 10px 12px !important;
  }
}

/* Гарантия, что форма не сломает верстку */
#b24-form-container * {
  box-sizing: border-box !important;
  max-width: 100% !important;
}

/* Убираем стандартные стили Bitrix24, ЕСЛИ НУЖНО!!!!*/
/* #b24-form-container .b24-form-content {
  all: initial !important;
  display: block !important;
  font-family: inherit !important;
  width: 100% !important;
} */

/* Исправление для темной темы 
@media (prefers-color-scheme: dark) {
  #b24-form-container .b24-form-wrapper {
    background: #1a1a1a !important;
    border-color: #333 !important;
  }

  #b24-form-container .b24-form-control {
    background: #2a2a2a !important;
    border-color: #000000 !important;
    color: #ffffff !important;
  }

  #b24-form-container .b24-form-field-label {
    color: #ffffff !important;
  }
}*/

/* Анимация появления */
@keyframes formFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#b24-form-container .b24-form-wrapper {
  animation: formFadeIn 0.5s ease-out;
}

/* Форсируем отображение на мобильных */
#b24-form-container {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
}

/* Убедимся, что форма не скрыта */
#b24-form-container .b24-form-wrapper {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* ===== СТИЛИ ДЛЯ ЛОГОТИПА ===== */

.logo {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px 0;
  margin: 20px 0;
  aspect-ratio: 300/120; /* Соотношение сторон логотипа */
}

.logo img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* Базовые размеры для десктопов */
.logo img {
  width: 400px;
  /* max-height: 160px; */
  height: 160px;
}

/* Планшеты и маленькие ноутбуки */
@media (max-width: 1024px) {
  .logo img {
    width: 250px;
    max-height: 100px;
  }
}

/* Планшеты */
@media (max-width: 768px) {
  .logo {
    margin: 15px 0;
    padding: 12px 0;
  }

  .logo img {
    width: 200px;
    max-height: 80px;
  }
}

/* Большие мобильные */
@media (max-width: 480px) {
  .logo {
    margin: 12px 0;
    padding: 10px 0;
  }

  .logo img {
    width: 160px;
    max-height: 65px;
  }
}

/* Средние мобильные */
@media (max-width: 375px) {
  .logo img {
    width: 140px;
    max-height: 55px;
  }
}

/* Маленькие мобильные (320px) */
@media (max-width: 320px) {
  .logo {
    margin: 10px 0;
    padding: 8px 0;
  }

  .logo img {
    width: 120px;
    max-height: 50px;
  }
}

/* Ландшафтная ориентация на мобильных */
@media (max-height: 480px) and (orientation: landscape) {
  .logo img {
    width: 100px;
    max-height: 40px;
  }

  .logo {
    margin: 8px 0;
    padding: 5px 0;
  }
}

/* Обеспечиваем плавное масштабирование */
.logo img {
  transition: all 0.3s ease;
}

/* Гарантируем, что логотип не будет слишком маленьким */
.logo img {
  min-width: 80px;
  min-height: 30px;
}

/* @media (max-width: 767px) {
  #lastElem2 .container-left {
    order: 2; */ /* Левая колонка будет второй */ /*
  }

  #lastElem2 .container-right {
    order: 1; */ /* Правая колонка будет первой */ /*
  }

  #lastElem2 .logo {
    margin-top: 30px;
    text-align: center;
  }

  #lastElem2 {
    display: flex;
    flex-direction: column;
  }
} */

@media (max-width: 767px) {
  #lastElem {
    margin-bottom: 40px; /* Добавляем отступ после секции с графиком */
  }

  #lastElem2 {
    margin-top: 20px; /* Добавляем отступ перед секцией с пояснениями */
  }

  /*  контейнеры занимают всю ширину */
  #lastElem .container-left,
  #lastElem .container-right,
  #lastElem2 .container-left,
  #lastElem2 .container-right {
    width: 100% !important;
    float: none;
  }

  /* Дополнительно: уменьшаем высоту графика на мобильных */
  #myBoxPlot {
    height: 300px !important;
    min-height: 300px !important;
  }
}

/*----------ДЛЯ ДИСКДЭЙМЕРОВ--------------------------*/

/* Стили для дисклеймера */
.out-area.disclamer {
  /* Отступ сверху для отделения от предыдущего элемента */
  margin-top: 1rem;

  /* Внутренние отступы для лучшего визуального отделения */
  padding: 1rem;

  /* Стили для визуального выделения */
  background-color: #f8f9fa;
  /* border-left: 4px solid #ffc107; */
  border-radius: 4px;

  /* Текст немного меньше основного */
  font-size: 0.875rem;
  line-height: 1.4;
  /* color: #6c757d; */
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
  .out-area.disclamer {
    /* Уменьшаем отступы на мобильных */
    margin-top: 1.5rem;
    padding: 0.75rem;

    /* Увеличиваем шрифт для лучшей читаемости на маленьких экранах */
    font-size: 0.8rem;

    /* Делаем границу тоньше на мобильных */
    border-left-width: 3px;
  }
}

/* Дополнительная адаптация для очень маленьких экранов */
@media (max-width: 480px) {
  .out-area.disclamer {
    margin-top: 1rem;
    padding: 0.5rem;
    font-size: 0.75rem;
  }
}

/*------------------------------------------------------------------------*/
/* Стили для футера с документами */
.disclaimer {
  background-color: #f8f9fa;
  padding: 2rem 1.5rem;
  text-align: center;
  border-top: 1px solid #dee2e6;
  margin-top: 3rem;
}

.disclaimer p {
  margin-bottom: 1.5rem;
  color: #6c757d;
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
}

.doc-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #f7b70b 0%, #e6a908 100%);
  color: white !important;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.doc-link:hover {
  background: linear-gradient(135deg, #f8c123 0%, #f7b70b 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Иконка PDF */
.doc-link::before {
  content: "📄";
  font-size: 1.2em;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
  .disclaimer {
    padding: 1.5rem 1rem;
    margin-top: 2rem;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .doc-link {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    padding: 10px 16px;
  }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
  .disclaimer {
    padding: 1rem 0.5rem;
  }

  .disclaimer p {
    font-size: 0.85rem;
  }

  .doc-link {
    font-size: 0.9rem;
  }
}

/* ===== СКРЫТИЕ ЧЕКБОКСА АМОРТИЗАЦИИ =====
.checkbox-area {
  display: none !important;
} */

/* Стили для кнопки РАССЧИТАТЬ при наведении и нажатии */
.btn:hover {
  background-color: #f7b70b !important;
  border-color: #f7b70b !important;
  color: #000000 !important;
}

.btn:active {
  background-color: #e6a908 !important;
  border-color: #e6a908 !important;
  color: #000000 !important;
  transform: translateY(1px);
}

/* ===== ИСПРАВЛЕНИЕ ДЛЯ CONTAINER-RIGHT НА ДЕСКТОПЕ ===== */

/* Исправляем ТОЛЬКО для десктопных экранов */
@media (min-width: 769px) {
  .container-right .out-area {
    margin-bottom: 25px;
  }

  .container-right .out-area p {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    padding: 12px 0;
    line-height: 1.4;
    min-height: auto;
    margin: 0;
    gap: 15px;
  }

  .container-right .out-area p span:first-child {
    flex-shrink: 0;
    min-width: 60%;
    text-align: left;
  }

  .container-right .value-group {
    flex-shrink: 0;
    padding: 6px 8px !important;
    min-height: 32px;
    min-width: 35%;
    justify-content: flex-end !important;
    text-align: right !important; /* Прижимаем текст вправо */
  }

  /* Прижимаем числа внутри value-group вправо */
  .container-right .value-group span {
    text-align: right !important;
    width: 100%;
  }
}

/* СКРЫТИЕ ТОЛЬКО НАШЕГО ЧЕКБОКСА АМОРТИЗАЦИИ */
#inputData .checkbox-area {
  display: none !important;
}

/* ===== ИСПРАВЛЕНИЕ ЦВЕТОВ ФОРМЫ BITRIX24 ===== */
/* #b24-form-container * {
  color: #000000 !important;
  background-color: transparent !important;
} */

/* Особенно для текстовых элементов */
/* #b24-form-container .b24-form-field-label,
#b24-form-container span,
#b24-form-container div,
#b24-form-container p {
  color: #000000 !important;
} */

/* Для полей ввода */
/* #b24-form-container input,
#b24-form-container textarea {
  color: #000000 !important;
  background-color: #ffffff !important;
  border: 1px solid #000000 !important;
} */
