.crm-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin: 0 auto 160px;
  justify-content: center;
  align-items: center;
}

/* Стили вкладок */
.crm-tabs {
  display: flex;
  gap: 20px;
}

.crm-tab {
  border-radius: 12px;
  background: #000;
  text-align: center;
  font-size: 20px;
  font-family: 'Furore', sans-serif;
  padding: 14px 30px;
  border: 3px solid #000000;
  cursor: pointer;
  color: #fff;
  transition: all 0.3s ease;
  position: relative;
}

.crm-tab:hover {
  -webkit-box-shadow: 0px 8px 19px 5px rgba(175, 233, 59, 0.2);
  -moz-box-shadow: 0px 8px 19px 5px rgba(175, 233, 59, 0.2);
  box-shadow: 0px 8px 19px 5px rgba(175, 233, 59, 0.2);
}

.crm-tab.active {
  border: 3px solid #AFE93B;
  -webkit-box-shadow: 0px 8px 19px 5px rgba(175, 233, 59, 0.2);
  -moz-box-shadow: 0px 8px 19px 5px rgba(175, 233, 59, 0.2);
  box-shadow: 0px 8px 19px 5px rgba(175, 233, 59, 0.2);
}

/* Стили контента вкладок */
.crm-tab-content {
  display: none;
}

.crm-tab-content.active {
  display: flex;
  max-width: 100%;
  gap: 10px;
  justify-content: space-between;
  animation: fadeIn 0.3s ease;
  position: relative;
}

@keyframes fadeIn {
  from {
      opacity: 0;
      transform: translateY(10px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

/* Стили блоков внутри вкладок */
.crm-block {
  display: flex;
  flex-direction: column;
  width: 27%;
  border-radius: 20px;
  border: 1px solid #FFF;
  background: #000;
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.crm-block__top{
  display: flex;
  border-radius: 20px 20px 0 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  padding: 20px 16px;
  background: #7F48C4;
  margin-bottom: 20px;
  min-height: 200px;
}

.crm-block__top h3{
  font-size: 20px;
}

.crm-block__top p{
  font-size: 18px;
}

.crm-block:hover {
  /* transform: translateY(-2px); */
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.1);
}

.crm-block__bottom{
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 10px 30px;
}

.btn__crm{
  width: 100%;
  font-size: 18px;
  padding: 12px 10px;
  text-transform: uppercase;
  cursor: pointer;
}

.crm-polsovatel{
  font-size: 28px;
  line-height: 120%;
  text-align: center;
}

.crm-prise{
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
  min-height: 103px;
  justify-content: center;
}

.crm-prise>p{
  color: #ffffffb6;
  text-decoration: line-through;
  font-size: 20px;
}

.crm-prise__items h4{
  text-transform: uppercase;
  font-weight: 600;
  font-family: 'Furore', sans-serif;
  color: #AFE93B;
  font-size: 26px;
}

.discount-percent{
  font-size: 16px;
  color: #fff;
  text-align: center;
  padding: 4px 6px;
  background: #062DC4;
  border-radius: 20px;
}

.crm-prise__items{
  display: flex;
  gap: 10px;
  text-align: center;
  justify-content: center;
  align-items: flex-start;
}

.crm-prise>a{
  font-size: 18px;
  text-decoration: underline;
  color: #fff;
  font-weight: 400;
}

.crm-weight{
  text-transform: uppercase;
  font-weight: 600;
  font-size: 20px;
  text-align: center;
  margin: 16px 0;
}

.crm__list{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.crm__list-item{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.crm__list-item>span, .crm__list-item>ul li{
  font-size: 20px;
  min-height: 25px;
  color: #fff;
}

.crm__list-item>ul{
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-left: 30px;
}

.crm__list-item>ul li{
  color: #ffffffbc;
}

/* модалка */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.modal-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgb(0, 0, 0);
  padding: 30px 40px 40px;
  border-radius: 40px;
  max-width: 700px;
  width: 98%;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1001;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  background: none;
  border: none;
  color: #fff;
  font-weight: bold;
}

.modal-header h2 {
  margin-top: 0;
  font-size: 30px;
  margin-bottom: 20px;
  text-align: center;
}

.modal-price {
  font-size: 24px;
  text-align: center;
  font-weight: bold;
  color: #7F48C4;
  margin-bottom: 20px;
}


.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.form-group input,
.form-group select {
  width: 100%;
  border-radius: 30px;
  border: 3px solid #7F48C4;
  background: #000000;
  font-size: 22px;
  padding: 18px 28px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  box-sizing: border-box;
}

.person-type-selector {
    margin-bottom: 20px;
}

.person-type-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.person-type-selector label {
  display: inline-block;
  padding: 12px 20px;
  background: #000000;
  border: 2px solid #000000;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  color: white;
  transition: all 0.3s ease;
  margin: 0;
  text-align: center;
}

.person-type-selector label:hover {
  background: #000000;
  border: 2px solid #7F48C4;
}

.person-type-selector input[type="radio"] {
  display: none;
}

.person-type-selector input[type="radio"]:checked + label {
  background: #7F48C4;
  border-color: #7F48C4;
}

.person-type-selector label {
  display: inline-block;
  margin-right: 20px;
  cursor: pointer;
}

.individual-fields{
  display: flex;
}

.individual-fields, .legal-fields{
  flex-direction: column;
  gap: 40px;
  margin-bottom: 50px;
}

.legal-fields {
  display: none;
}

.confirmation-data {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 5px;
  margin-bottom: 20px;
}

.confirmation-data p {
  margin: 10px 0;
}

.modal-container::-webkit-scrollbar {
  width: 8px;
}

.modal-container::-webkit-scrollbar-track {
  background: #000000;
  border-radius: 4px;
}

.modal-container::-webkit-scrollbar-thumb {
  background: #7F48C4;
  border-radius: 4px;
}

.modal-container::-webkit-scrollbar-thumb:hover {
  background: #333333;
}

/* Для Firefox */
.modal-container {
  scrollbar-width: thin;
  scrollbar-color: #7F48C4 #000000;
}

/* Стили для заголовков преимуществ */
span.plate-s-1:after,
span.plate-s-2:after,
span.plate-s-3:after,
.crm__list ul li.plate-s-1_item:after,
.crm__list ul li.plate-s-2_item:after,
.crm__list ul li.plate-s-3_item:after {
    content: '';
    display: inline-block;
    width: 29px;
    height: 13px;
    background-repeat: no-repeat;
    background-position: center;
    margin-left: 8px;
    vertical-align: middle;
}

span.plate-s-1:after, .crm__list ul li.plate-s-1_item:after {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='29' height='13' fill='none'%3e%3cpath opacity='.994' fill-rule='evenodd' clip-rule='evenodd' d='M6 1a6 6 0 1 0 0 12h17a6 6 0 0 0 0-12H6zm0 1a5 5 0 0 0 0 10h17a5 5 0 0 0 0-10H6z' fill='%23AFE93B'/%3e%3cpath d='M3 7a3 3 0 0 1 3-3h2.94a.06.06 0 0 1 .06.06v5.88a.06.06 0 0 1-.06.06H6a3 3 0 0 1-3-3z' fill='%23AFE93B' fill-opacity='.81'/%3e%3c/svg%3e");  
}

span.plate-s-2:after, .crm__list ul li.plate-s-2_item:after {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='29' height='13' fill='none'%3e%3cpath opacity='.994' fill-rule='evenodd' clip-rule='evenodd' d='M6 1a6 6 0 1 0 0 12h17a6 6 0 0 0 0-12H6zm0 1a5 5 0 0 0 0 10h17a5 5 0 0 0 0-10H6z' fill='%23AFE93B'/%3e%3cpath d='M3 7a3 3 0 0 1 3-3h2.94a.06.06 0 0 1 .06.06v5.88a.06.06 0 0 1-.06.06H6a3 3 0 0 1-3-3z' fill='%23AFE93B' fill-opacity='.81'/%3e%3crect x='11' y='4' width='6' height='6' rx='1' fill='%23AFE93B' fill-opacity='.81'/%3e%3c/svg%3e");
}

span.plate-s-3:after, .crm__list ul li.plate-s-3_item:after {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='29' height='13' fill='none'%3e%3cpath opacity='.994' fill-rule='evenodd' clip-rule='evenodd' d='M6 1a6 6 0 1 0 0 12h17a6 6 0 0 0 0-12H6zm0 1a5 5 0 0 0 0 10h17a5 5 0 0 0 0-10H6z' fill='%23AFE93B'/%3e%3cpath d='M3 7a3 3 0 0 1 3-3h2.94a.06.06 0 0 1 .06.06v5.88a.06.06 0 0 1-.06.06H6a3 3 0 0 1-3-3zM26 7a3 3 0 0 1-3 3h-3.93a.07.07 0 0 1-.07-.07V4.07a.07.07 0 0 1 .07-.07H23a3 3 0 0 1 3 3z' fill='%23AFE93B' fill-opacity='.81'/%3e%3crect x='11' y='4' width='6' height='6' rx='1' fill='%23AFE93B' fill-opacity='.81'/%3e%3c/svg%3e");
}

.crm__list-container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

.crm__list-item-text{
  padding: 4px 8px;
  background: #062DC4;
  border-radius: 2px;
  font-weight: 500;
  font-size: 16px;
  color: #fff;
  text-align: center;
}

.crm__list-item>ul li, .crm__list-container{
  min-height: 30px;
}

.crm__list-item-title, .crm__list-item>ul li{
  padding: 4px 8px;
  border-radius: 20px;
  background-color: #fff0;
  margin-right: auto;
  cursor: pointer;
  transition: all .2s ease;
}

.crm__list-item-title:hover, .crm__list-item>ul li:hover{
  background-color: #333333;
}

.crm__list-item-title:hover::before, .crm__list-item>ul li:hover::before{
  content: '';
  position: absolute;
  width: 99%;
  height: 40px;
  left: 0;
  right: 0;
  margin: -8px auto 0;
  border-radius: 20px;
  z-index: 10;
  border: 2px solid #062DC4;
}


.comparison-modal .modal-container {
  max-width: 90%;
  width: 90%;
  max-height: 80vh;
  background: #000;
  border-radius: 20px;
}

.crm-comparison-table {
  width: 100%;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.crm-comparison-header,
.crm-comparison-row {
    display: flex;
    min-width: 800px;
}

.crm-feature-column {
  flex: 0 0 30%;
  padding: 10px;
  font-weight: bold;
}

.crm-value-column {
  flex: 1;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.crm-comparison-header .crm-feature-column,
.crm-comparison-header .crm-value-column {
  color: white;
  font-weight: bold;
  font-size: 18px;
}

.crm-comparison-body {
    max-height: 60vh;
    /* overflow-y: auto; */
}

.feature-category {
  color: #ffffff;
  font-size: 18px;
}

.feature-name {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 400;
}

.feature-tooltip {
    cursor: help;
    display: inline-block;
    width: 18px;
    height: 18px;
    background: #062DC4;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 18px;
    font-size: 12px;
    margin-left: 8px;
    position: relative;
}

.tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.feature-value.no {
  color: #fff;
  font-size: 16px;
  border-radius: 100%;
  width: 30px;
  height: 30px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #333333;
}

.feature-value.text {
    font-weight: 500;
}

.feature-value.empty {
  color: #fff;
  font-size: 16px;
  border-radius: 100%;
  width: 30px;
  height: 30px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #333333;
  display: none;
}

.feature-value.yes{
  color: #fff;
  background: #AFE93B;
  font-size: 16px;
  border-radius: 100%;
  width: 30px;
  height: 30px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comparison-navigation {
    padding: 15px;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
}

.comparison-navigation ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.comparison-navigation li {
    margin: 0;
}

.comparison-navigation a {
    color: #3498db;
    text-decoration: none;
    padding: 5px 10px;
    border: 1px solid #3498db;
    border-radius: 3px;
    transition: all 0.3s;
}

.comparison-navigation a:hover {
    background: #3498db;
    color: white;
}

.crm-comparison-row.highlighted {
    background-color: #fff8e1;
    transition: background-color 0.5s;
}

/* Адаптивность */
@media (max-width: 768px) {
    .comparison-modal .modal-container {
        max-width: 95%;
        width: 95%;
    }
    
    .crm-comparison-header,
    .crm-comparison-row {
        min-width: 600px;
    }
}
/* Адаптивность */
@media (max-width: 768px) {
    .crm-comparison-header,
    .crm-comparison-row {
        flex-direction: column;
    }
    
    .crm-feature-column,
    .crm-value-column {
        flex: 1 0 auto;
    }
    
    .crm-value-column {
        justify-content: flex-start;
        text-align: left;
    }
}

/* Адаптивность */
@media (max-width: 1200px) {
  .crm{
    flex-direction: column;
  }

  .crm__list-item-title:hover::before, .crm__list-item>ul li:hover::before{
    display: none;
  }

  .crm__heading{
    margin: 0 !important;
  }

  .crm__heading, .crm__discount__heading {
    font-size: 28px;
  }

  .crm__block{
    width: 100%;
  }

  .crm__img{
    width: 100%;
  }

  .crm-tab-content.active{
    flex-wrap: wrap;
    gap: 30px 10px;
  }

  .crm-block{
    width: 48%;
  }

  .crm__list-item>span, .crm__list-item>ul li{
    min-height: 0;
  }
}
@media (max-width: 765px) {
  .crm__heading, .crm__discount__heading {
    font-size: 22px;
  }

  .crm__list-item>ul li, .crm__list-container{
    min-height: 0;
  }

  .crm-block{
    width: 100%;
  }

  .modal-container {
    padding: 20px 16px 30px;
  }

  .person-type-selector label{
    margin-right: 0;
  }

  .crm-tab{
    padding: 14px 16px;
  }

  .person-type-selector label {
    padding: 10px;
  }

  .individual-fields, .legal-fields {
    gap: 20px;
  }

  .crm-block__top{
    min-height: auto;
  }
}
@media (max-width: 400px) {
  .crm__heading, .crm__discount__heading {
    font-size: 18px;
  }
}