/* CSS kod pishite v etom faile, chotobi pri ustanovke obnovlenii ne bilo problem  */
/* --------------------------------------- */
/* Here you can put custom css rules for your site */

/* ===== VARIABLES ===== */
:root {
  --primary-orange: #f15a2a;
  --primary-blue: #26499b;
  --secondary-blue: #00569c;
  --text-dark: #080808;
  --text-light: #ffffff;
  --bg-light: #f8f9fa;
  --border-light: #e7e7e7;
  --shadow: 0 2px 15px rgba(0,0,0,0.08);
  --radius: 8px;
}

/* ===== COMMON STYLES ===== */
body {
  background-color: white;
  color: var(--text-dark);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
}

h3 {
  color: var(--secondary-blue);
  border-bottom: 2px solid var(--secondary-blue);
  padding-bottom: 5px;
  margin-top: 30px;
}

a {
  color: var(--secondary-blue);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  text-decoration: underline;
}

/* ===== HEADER & NAVIGATION ===== */
.top-row {
  font-size: 12px;
  line-height: 12px;
  padding: 6px 0;
  background: radial-gradient(circle, rgb(38, 74, 155) 38%, rgb(15, 117, 188) 69%, rgb(24, 107, 174) 91%);
}

.top-row .info-text i {
  font-size: 14px;
  margin: -1px 7px -1px 0;
  color: var(--text-light);
}

.top-row .info-text .email,
.top-row .info-text .phone,
.top-row .info-text .skype,
a.email_a {
  color: var(--text-light);
}

.top-row .search .btn-search {
  background: var(--primary-blue);
}

.social-icons li {
  border-radius: 50%;
}

.small-banner .banner {
  border-bottom-color: var(--primary-orange);
}

.flex-control-paging li a:hover,
.flex-control-paging li a.flex-active {
  background: var(--primary-orange);
}

/* ===== MENU ===== */
header.menu-type-2 .mega-menu table td.active .wrap > a {
  background-color: var(--primary-orange);
  background-image: linear-gradient(to bottom, #f47426, #da831a);
}

header.menu-type-2 .mega-menu table td .wrap > a {
  border-left-color: #f68921;
  border-right-color: #f2682b;
}

/* ===== FEATURES & ICONS ===== */
.feature-box .feature-box-icon {
  background-color: var(--primary-orange);
  border-radius: 50%;
}

.icon.colored {
  background: #f25f2b;
}

.img-thumbnail {
  padding: 5px;
  margin: 0 10px 0px 0px;
}

/* ===== SERVICE BOXES ===== */
.serviceBox {
  text-align: center;
  margin: 60px 0 21px;
  position: relative;
  z-index: 1;
}

.serviceBox .service-icon {
  width: 78px;
  height: 78px;
  border-radius: 3px;
  background: #fff;
  margin: 0 auto;
  position: absolute;
  top: -34px;
  left: 0;
  right: 0;
  z-index: 1;
  transition: all 0.3s ease-out;
}

.serviceBox:hover .service-icon {
  transform: rotate(45deg);
}

.serviceBox .service-icon span {
  display: inline-block;
  width: 60px;
  height: 60px;
  line-height: 60px;
  border-radius: 3px;
  background: #727cb6;
  font-size: 30px;
  color: #fff;
  margin: auto;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  transition: all 0.3s ease-out;
}

.serviceBox .service-icon span i {
  transition: all 0.3s ease-out;
}

.serviceBox:hover .service-icon span i {
  transform: rotate(-45deg);
}

.serviceBox .service-content {
  background: #f5f5f5;
  border: 1px solid var(--border-light);
  border-radius: 3px;
  padding: 55px 15px;
  position: relative;
  height: 270px;
}

.serviceBox .service-content:before {
  content: "";
  display: block;
  width: 80px;
  height: 80px;
  border: 1px solid var(--border-light);
  border-radius: 3px;
  margin: 0 auto;
  position: absolute;
  top: -37px;
  left: 0;
  right: 0;
  z-index: -1;
  transition: all 0.3s ease-out;
}

.serviceBox:hover .service-content:before {
  transform: rotate(45deg);
}

.serviceBox .title {
  font-size: 17px;
  font-weight: 500;
  color: #324545;
  text-transform: uppercase;
  margin: 0 0 25px;
  position: relative;
  transition: all 0.3s ease-out;
}

.serviceBox .description {
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
  margin-bottom: 0;
}

.serviceBox .read-more {
  display: block;
  width: 40px;
  height: 40px;
  line-height: 38px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border-light);
  font-size: 14px;
  color: #c4c2c2;
  margin: 0 auto;
  position: absolute;
  bottom: -17px;
  left: 0;
  right: 0;
  transition: all 0.3s ease-out;
}

.serviceBox .read-more:hover {
  border-color: #727cb6;
  color: #727cb6;
  text-decoration: none;
}

/* Service Box Color Variants */
.serviceBox.green .service-icon span { background: #008b8b; }
.serviceBox.blue .service-icon span { background: #3498db; }
.serviceBox.orange .service-icon span { background: #e67e22; }

.serviceBox.green:hover .title { color: #008b8b; }
.serviceBox.blue:hover .title { color: #3498db; }
.serviceBox.orange:hover .title { color: #e67e22; }

.serviceBox:hover .read-more { border-color: #727cb6; color: #727cb6; }
.serviceBox.green:hover .read-more { border-color: #008b8b; color: #008b8b; }
.serviceBox.blue:hover .read-more { border-color: #3498db; color: #3498db; }
.serviceBox.orange:hover .read-more { border-color: #e67e22; color: #e67e22; }

/* ===== CONTENT SECTIONS ===== */
.navigator-content h3 {
  font-weight: 300;
  font-size: 13px;
  letter-spacing: normal;
  line-height: 20px;
}

.info-block {
  margin-bottom: 30px;
  border-left: 3px solid var(--secondary-blue);
  padding-left: 15px;
}

.date {
  font-weight: bold;
  color: #555;
  margin-bottom: 5px;
}

.document-list {
  margin-left: 20px;
}

.document-item {
  margin-bottom: 10px;
}

.year-section {
  margin-top: 40px;
}

.year-header {
  background-color: #f0f0f0;
  padding: 10px 15px;
  border-radius: 5px;
  font-weight: bold;
  margin-bottom: 15px;
}

/* ===== CONTACTS SECTION ===== */
.contacts-section {
  padding: 4rem 0;
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: #334155;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.25rem;
  font-weight: 700;
  color: #0f172a;
  position: relative;
  border-bottom: none;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: #2563eb;
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

.contacts-container {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 3rem;
}

.contact-card {
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.contact-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon i {
  color: #2563eb;
  font-size: 1.25rem;
}

.contact-details h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.contact-details p {
  color: #64748b;
  line-height: 1.7;
}

.contact-details a {
  color: #2563eb;
  text-decoration: none;
  position: relative;
  display: inline-block;
}

.contact-details a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #2563eb;
  transition: all 0.3s ease;
}

.contact-details a:hover::after {
  width: 100%;
}

.map-container, .location-map {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 400px;
}

.map-container iframe, .location-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.locations-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.location-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
  height: 100%;
}

.location-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.location-map {
  height: 240px;
}

.location-content {
  padding: 1.5rem;
}

.location-content h4 {
  font-size: 1.25rem;
  color: #0f172a;
  margin-bottom: 1rem;
}

.location-content p {
  color: #64748b;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

/* ===== INFO SECTIONS ===== */
.social-section,
.about-team,
.union-section,
.requisites-section,
.station-info {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
  font-family: 'Roboto', sans-serif;
  color: #333;
  line-height: 1.6;
}

.text-justify,
.justified-text {
  text-align: justify;
  margin-bottom: 1.5em;
  hyphens: auto;
}

.guarantees-block,
.safety-block,
.tasks-block,
.benefits-block,
.highlight-box,
.pgu-section,
.document-intro {
  background-color: var(--bg-light);
  padding: 25px;
  border-radius: var(--radius);
  margin: 30px 0;
  border-left: 4px solid var(--secondary-blue);
}

.quote-block {
  background-color: #eaf2f8;
  border-left: 4px solid #3498db;
  padding: 20px 25px;
  margin: 30px 0;
  font-style: italic;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.benefits-list,
.safety-list,
.union-tasks,
.timeline-list {
  padding-left: 25px;
}

/* ===== TABLES ===== */
.requisites-table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
  box-shadow: var(--shadow);
}

.requisites-table th,
.requisites-table td {
  padding: 12px 15px;
  border: 1px solid #ddd;
  text-align: left;
  vertical-align: top;
}

.requisites-table th {
  background-color: var(--secondary-blue);
  color: white;
  font-weight: 600;
  width: 30%;
}

.requisites-table tr:nth-child(even) {
  background-color: var(--bg-light);
}

/* ===== STATION INFO ===== */
.station-header {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 25px;
  align-items: flex-start;
}

.station-thumbnail {
  max-width: 300px;
  height: auto;
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.station-intro {
  flex: 1;
  min-width: 300px;
}

.specs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 25px 0 10px;
}

.spec-item {
  display: flex;
  flex-wrap: wrap;
  padding-bottom: 10px;
  border-bottom: 1px dashed #ddd;
}

.spec-item:last-child {
  border-bottom: none;
}

.spec-label {
  font-weight: 600;
  margin-right: 8px;
  min-width: 220px;
  color: #2c3e50;
}

.spec-value {
  font-weight: 500;
}

.specs-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.specs-list li {
  margin-bottom: 15px;
  padding-left: 25px;
  position: relative;
}

.specs-list li::before {
  content: "•";
  color: #2980b9;
  font-weight: bold;
  position: absolute;
  left: 0;
  font-size: 1.4em;
}

/* ===== DOCUMENTS ===== */
.document-section {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  margin-top: 20px;
}

.document-item {
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid #eee;
}

.document-date {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.document-date::before {
  content: "📅";
  margin-right: 10px;
  font-size: 18px;
}

.document-content {
  padding-left: 28px;
}

.document-content p {
  margin-bottom: 15px;
  text-align: justify;
}

.document-links {
  margin-top: 15px;
}

.document-link {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
  padding: 10px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.document-link:hover {
  background-color: #f0f7ff;
}

.document-link::before {
  content: "📎";
  margin-right: 10px;
  font-size: 18px;
  flex-shrink: 0;
}

.document-link a {
  color: #2980b9;
  text-decoration: none;
  word-break: break-all;
}

.document-group {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px dashed #ddd;
}

.document-group-title {
  font-size: 20px;
  color: #2c3e50;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e74c3c;
}

.img-responsive {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 25px;
  border-radius: 4px;
  box-shadow: var(--shadow);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (min-width: 768px) {
  .contact-card {
    grid-template-columns: 1fr 1fr;
  }
  
  .locations-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .locations-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .contacts-section,
  .social-section,
  .about-team,
  .union-section,
  .requisites-section,
  .station-info {
    padding: 0 15px;
    margin: 20px auto;
  }
  
  .section-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
  }
  
  .contact-card {
    padding: 1.5rem;
  }
  
  .map-container, .location-map {
    height: 300px;
  }
  
  .document-section {
    padding: 20px 15px;
  }
  
  .guarantees-block,
  .safety-block,
  .tasks-block,
  .benefits-block,
  .highlight-box,
  .pgu-section {
    padding: 20px 15px;
  }
}

@media (max-width: 650px) {
  .station-header {
    flex-direction: column;
  }
  
  .station-thumbnail {
    max-width: 100%;
  }
  
  .spec-label {
    min-width: 180px;
  }
}

@media (max-width: 480px) {
  .contact-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .contact-icon {
    margin-bottom: 0.75rem;
  }
  
  .specs-list li {
    padding-left: 20px;
  }
  
  .spec-label {
    display: block;
    min-width: 100%;
    margin-bottom: 5px;
  }
  
  .spec-item {
    flex-direction: column;
  }
  
  .requisites-table {
    display: block;
    overflow-x: auto;
  }
}
/* FIX-QUESTION-MODAL-START */
/* Appeal form in jqm popup ("Задать вопрос") — restore after Bitrix/BS4 update */
.question_frame.jqmWindow {
  width: min(860px, calc(100vw - 48px)) !important;
  max-width: calc(100vw - 24px) !important;
  max-height: calc(100vh - 32px) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
  padding: 28px 32px 36px !important;
  left: 50% !important;
  right: auto !important;
  transform: none !important;
  -webkit-transform: none !important;
  z-index: 10050 !important;
  background: #fff !important;
}

.question_frame.jqmWindow .jqmClose.top-close {
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  width: 40px !important;
  height: 40px !important;
  line-height: 40px !important;
  background: #0a3fb4 !important;
  color: #fff !important;
  border-radius: 3px;
  z-index: 2;
}

.question_frame.jqmWindow .radio-line {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 6px 18px;
  margin: 8px 0 16px;
}

.question_frame.jqmWindow .radio-line .sf-form-check {
  display: inline-flex !important;
  align-items: center !important;
  width: auto !important;
  max-width: none !important;
  flex: 0 0 auto !important;
  padding: 6px 0 !important;
  margin: 0 !important;
}

.question_frame.jqmWindow .radio-line .sf-form-check-input {
  position: static !important;
  opacity: 1 !important;
  z-index: auto !important;
  width: 18px !important;
  height: 18px !important;
  margin: 0 8px 0 0 !important;
}

.question_frame.jqmWindow .radio-line label {
  position: static !important;
  padding: 0 !important;
  margin: 0 !important;
  display: inline !important;
  font-size: 14px;
  color: #2f383d;
}

.question_frame.jqmWindow .radio-line label:before,
.question_frame.jqmWindow .radio-line label:after {
  display: none !important;
  content: none !important;
}

/* Mirror of radio selection — keep in DOM for submit, hide duplicate label look */
.question_frame.jqmWindow #text-glava,
.question_frame.jqmWindow #text-administration {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.question_frame.jqmWindow .form-control {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  height: auto !important;
  min-height: 38px;
  margin-bottom: 10px;
}

.question_frame.jqmWindow label {
  display: block;
  margin: 10px 0 4px;
}

.question_frame.jqmWindow .row {
  display: flex !important;
  flex-wrap: wrap !important;
  margin-left: -10px !important;
  margin-right: -10px !important;
}

.question_frame.jqmWindow [class*="col-"] {
  box-sizing: border-box !important;
  padding-left: 10px !important;
  padding-right: 10px !important;
  max-width: 100%;
}

.question_frame.jqmWindow .col-md-6,
.question_frame.jqmWindow .col-sm-6 {
  flex: 0 0 50%;
  max-width: 50%;
}

.question_frame.jqmWindow .col-md-12,
.question_frame.jqmWindow .col-sm-12,
.question_frame.jqmWindow .col-12 {
  flex: 0 0 100%;
  max-width: 100%;
}

.question_frame.jqmWindow .btn {
  white-space: normal;
  max-width: 100%;
}

@media (max-width: 767px) {
  .question_frame.jqmWindow {
    width: calc(100vw - 24px) !important;
    padding: 20px 16px 28px !important;
  }
  .question_frame.jqmWindow .col-md-6,
  .question_frame.jqmWindow .col-sm-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}
/* FIX-QUESTION-MODAL-END */


/* SF-APPEAL-LIST-PAGE */
body .sf-appeal-list {
  background: transparent;
}
.right_block .sf-appeal-list,
.content-md .sf-appeal-list {
  margin-top: 8px;
}
