/* Modern shared presentation layer for itc-pnevm.ru.
   It is loaded after the legacy theme and keeps PHP markup/logic intact. */

:root {
  --itc-red: #e30613;
  --itc-red-dark: #bd0010;
  --itc-ink: #171a22;
  --itc-text: #344054;
  --itc-muted: #667085;
  --itc-line: #e6e8ec;
  --itc-soft-line: #eef1f4;
  --itc-surface: #f7f8fa;
  --itc-card: #ffffff;
  --itc-radius: 14px;
  --itc-shadow: 0 18px 45px rgba(16, 24, 40, .08);
}

html {
  scroll-behavior: smooth;
}

body {
  background: #fff;
  color: var(--itc-text);
  font-family: 'Manrope', Arial, sans-serif;
  font-size: 14px;
}

a {
  color: var(--itc-red);
  transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

a:hover,
a:focus {
  color: var(--itc-red-dark);
  text-decoration: none;
}

img {
  max-width: 100%;
}

.container {
  max-width: 1180px;
}

#spin {
  background:
    radial-gradient(circle at 8% 4%, rgba(227, 6, 19, .055), transparent 28%),
    linear-gradient(180deg, #fff 0%, #fafbfc 100%);
}

#spin > .section:not(#breadcrumb) {
  padding-top: 54px;
}

#spin .section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

#spin .section-title .title,
#spin h1,
#spin h2,
#spin h3,
#spin h4,
#spin h5 {
  color: var(--itc-ink);
  font-family: 'Manrope', Arial, sans-serif;
}

#spin .section-title .title {
  position: relative;
  padding-bottom: 12px;
}

#spin .section-title .title:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 58px;
  height: 4px;
  border-radius: 999px;
  background: var(--itc-red);
}

/* Shared content cards for old informational pages. */
#spin .section .col-md-12 > h4,
#spin .section .col-md-12 > form,
#spin .section .col-md-9 > h4,
#spin .section .col-md-3 > h4,
#spin .section .col-md-3 > p {
  font-family: 'Manrope', Arial, sans-serif;
}

#spin .section .col-md-12 > h4:has(p),
#spin .section .col-md-12 > .privacy-card,
#spin .section .col-md-12 > form {
  padding: 32px;
  border: 1px solid var(--itc-line);
  border-radius: var(--itc-radius);
  background: var(--itc-card);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

#spin .section .col-md-12 > h4:has(p) {
  margin: 0 0 28px;
  color: var(--itc-text);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.75;
}

#spin .section .col-md-12 > h4:has(p) p {
  margin: 0 0 16px;
}

#spin .section .col-md-12 > h4 + hr,
#spin hr {
  margin: 28px 0;
  border-top-color: var(--itc-line);
}

#spin .section .col-md-12 > h4:not(:has(p)),
#spin .section .col-md-9 > h4,
#spin .section .col-md-3 > h4 {
  margin: 0 0 14px;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -.025em;
}

#spin .img-thumbnail {
  padding: 10px;
  border: 1px solid var(--itc-line);
  border-radius: var(--itc-radius);
  background: #fff;
  box-shadow: var(--itc-shadow);
}

/* Contacts page. */
#spin .section .col-md-3 {
  color: var(--itc-text);
}

#spin .section .col-md-3 > p {
  margin: 0 0 18px;
  padding: 18px;
  border: 1px solid var(--itc-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
  line-height: 1.55;
}

#spin .section .col-md-3 > p i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-right: 8px;
  border-radius: 50%;
  color: #fff;
  background: var(--itc-red);
}

#spin .section iframe {
  overflow: hidden;
  border: 0 !important;
  border-radius: var(--itc-radius);
  box-shadow: var(--itc-shadow);
}

#spin .section [style*="position:relative"][style*="overflow:hidden"] {
  border-radius: var(--itc-radius);
}

/* Generic old forms: dealer, analog selection, modals, checkout. */
#spin form .form-group,
.modal-body .form-group {
  margin-bottom: 18px;
}

#spin form label,
.modal-body label {
  margin-bottom: 7px;
  color: var(--itc-text);
  font-size: 12px;
  font-weight: 800;
}

#spin .form-control,
#spin .input,
.modal-body .form-control,
.modal-body .input {
  min-height: 44px;
  border: 1px solid #d0d5dd;
  border-radius: 9px;
  box-shadow: none;
  color: var(--itc-ink);
  font-family: 'Manrope', Arial, sans-serif;
  font-size: 14px;
}

#spin textarea.form-control,
#spin textarea.input,
.modal-body textarea.form-control,
.modal-body textarea.input {
  min-height: 112px;
  padding-top: 12px;
}

#spin .form-control:focus,
#spin .input:focus,
.modal-body .form-control:focus,
.modal-body .input:focus {
  border-color: var(--itc-red);
  box-shadow: 0 0 0 3px rgba(227, 6, 19, .1);
}

#spin input[type="file"] {
  display: block;
  width: 100%;
  padding: 12px;
  border: 1px dashed #c9ced6;
  border-radius: 9px;
  background: var(--itc-surface);
}

#spin .btn,
.modal-body .btn,
.primary-btn,
.btn-danger,
.btn-success,
.btn-primary {
  border-radius: 9px;
  font-family: 'Manrope', Arial, sans-serif;
  font-weight: 800;
  text-transform: none;
  transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

#spin .btn-danger,
#spin .btn-success,
#spin .btn-primary,
#spin .primary-btn,
.modal-body .btn-danger,
.modal-body .btn-success {
  border-color: var(--itc-red);
  background: var(--itc-red);
  color: #fff;
}

#spin .btn-danger:hover,
#spin .btn-success:hover,
#spin .btn-primary:hover,
#spin .primary-btn:hover,
.modal-body .btn-danger:hover,
.modal-body .btn-success:hover {
  border-color: var(--itc-red-dark);
  background: var(--itc-red-dark);
  color: #fff;
  transform: translateY(-1px);
}

.modal-content {
  border-radius: var(--itc-radius);
}

/* Tables and search results that still use legacy Bootstrap markup. */
#spin table:not(.ui-datepicker-calendar) {
  overflow: hidden;
  border: 1px solid var(--itc-line);
  border-radius: var(--itc-radius);
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

#spin table > thead > tr > th {
  border-bottom: 1px solid var(--itc-line);
  background: var(--itc-surface);
  color: #475467;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

#spin table > tbody > tr > td {
  border-top-color: var(--itc-soft-line);
  color: var(--itc-text);
  vertical-align: middle;
}

#spin table > tbody > tr:hover {
  background: #fffafb;
}

/* Catalog side/tree and SMC page extras. */
#spin .jstree-default .jstree-anchor {
  min-height: 30px;
  padding: 4px 8px;
  border-radius: 7px;
  color: var(--itc-text);
  font-family: 'Manrope', Arial, sans-serif;
  font-size: 13px;
}

#spin .jstree-default .jstree-anchor:hover {
  background: #fff;
  color: var(--itc-red);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .06);
}

#spin .jstree-default .jstree-clicked {
  background: #fff1f2;
  color: var(--itc-red);
  box-shadow: none;
}

#spin .pagination > li > a,
#spin .pagination > li > span {
  border-color: var(--itc-line);
  color: var(--itc-text);
  font-weight: 700;
}

#spin .pagination > .active > a,
#spin .pagination > .active > span,
#spin .pagination > li > a:hover {
  border-color: var(--itc-red);
  background: var(--itc-red);
  color: #fff;
}

/* Privacy/legal page uses many custom divs. */
#spin .descr,
#spin .li {
  color: var(--itc-text);
  font-size: 14px;
  line-height: 1.7;
}

#spin .ol {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

#spin .li {
  padding: 12px 14px;
  border: 1px solid var(--itc-soft-line);
  border-radius: 10px;
  background: #fff;
}

/* 404. */
#wrapper .error-box {
  position: static;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 70px 15px;
  background:
    radial-gradient(circle at 50% 10%, rgba(227, 6, 19, .08), transparent 30%),
    linear-gradient(180deg, #fff 0%, var(--itc-surface) 100%);
}

#wrapper .error-body {
  max-width: 620px;
  padding: 48px;
  border: 1px solid var(--itc-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--itc-shadow);
}

#wrapper .error-body h1 {
  color: var(--itc-red);
  font-family: 'Manrope', Arial, sans-serif;
  font-size: 132px;
  line-height: .9;
  letter-spacing: -.08em;
}

#wrapper .error-body h3 {
  margin: 18px 0 26px;
  color: var(--itc-ink);
  font-family: 'Manrope', Arial, sans-serif;
  font-weight: 800;
}

/* Footer/newsletter polish. */
#newsletter {
  border-top: 1px solid var(--itc-line);
  background: var(--itc-surface);
}

#footer,
#bottom-footer {
  background: #171a22;
}

#footer .footer-title,
#footer h3 {
  color: #fff;
  font-family: 'Manrope', Arial, sans-serif;
  font-weight: 800;
}

#footer a,
#footer p,
#footer li {
  color: rgba(255, 255, 255, .72);
}

#footer a:hover {
  color: #fff;
}

/* Cookie notice. */
.itc-cookie-notice {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 18px 20px;
  border: 1px solid var(--itc-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 22px 60px rgba(16, 24, 40, .18);
  color: var(--itc-text);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .22s ease, transform .22s ease;
  backdrop-filter: blur(12px);
}

.itc-cookie-notice[hidden] {
  display: none;
}

.itc-cookie-notice.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.itc-cookie-notice__text {
  display: grid;
  gap: 4px;
  line-height: 1.45;
}

.itc-cookie-notice__text strong {
  color: var(--itc-ink);
  font-size: 15px;
  font-weight: 800;
}

.itc-cookie-notice__text span {
  color: var(--itc-muted);
  font-size: 13px;
}

.itc-cookie-notice__text a {
  color: var(--itc-red);
  font-weight: 800;
}

.itc-cookie-notice__button {
  flex: 0 0 auto;
  min-width: 124px;
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: var(--itc-red);
  color: #fff;
  font-family: 'Manrope', Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  transition: background .18s ease, transform .18s ease;
}

.itc-cookie-notice__button:hover,
.itc-cookie-notice__button:focus {
  background: var(--itc-red-dark);
  transform: translateY(-1px);
}

@media only screen and (max-width: 991px) {
  #spin .section .col-md-3 > p {
    margin-bottom: 14px;
  }

  #spin .section .col-md-9 {
    margin-top: 24px;
  }
}

@media only screen and (max-width: 767px) {
  #spin > .section:not(#breadcrumb) {
    padding: 38px 0 52px;
  }

  #spin .section-title {
    display: block;
  }

  #spin .section-title .title {
    font-size: 25px;
  }

  #spin .section .col-md-12 > h4:has(p),
  #spin .section .col-md-12 > form {
    padding: 22px;
  }

  #spin table:not(.ui-datepicker-calendar) {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  #wrapper .error-body {
    padding: 34px 22px;
  }

  #wrapper .error-body h1 {
    font-size: 92px;
  }

  .itc-cookie-notice {
    left: 12px;
    right: 12px;
    bottom: 12px;
    display: grid;
    gap: 14px;
    padding: 16px;
  }

  .itc-cookie-notice__button {
    width: 100%;
  }
}
