/*Для подсветки нужной организации при переходе с поиска*/
#breedersTable tbody tr.highlighted {
    background-color: #e6f7ff !important;
    border-left: 3px solid #246D76;
    animation: pulseHighlight 2s ease-in-out;
}

@keyframes pulseHighlight {
    0% { background-color: #e6f7ff; }
    50% { background-color: #b3e0ff; }
    100% { background-color: #e6f7ff; }
}
.content-container {
    width: 90%;
    margin: 0 3%;
    padding: 30px 0;
}

.page-header {
    margin-bottom: -30px;
    display: flex;
    justify-content: flex-start;
    padding-left: 2%;
}

.page_title {
    font-size: 32px;
    color: #246D76;
    margin-right: 5px;
    font-family: 'Times New Roman', Times, serif;
    font-weight: bold;
}
.page-header img {
    width: 30px;
    height: 34px;
}

.div_subtitle {
    font-size: 48px;
    color: #246D76;
    font-family: 'Times New Roman', Times, serif;
    padding-left: 6.5%;
}

.top-content-block {
    display: flex;
    gap: 60px;
    margin-top: 30px;
    margin-bottom: 50px;
}
.text-content-top {
    float: left;
}
.intro-text {
    margin-top: 7%;
    font-size: 25px;
    line-height: 1.6;
    color: #0c3236;
    padding-left: 6.5%;
    margin-right: 6%;
}
.top-content-block img {
    margin-right: 3%;
    height: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    float: right;
}

.content-divider {
    height: 2px;
    background-color:#14484e;
    opacity: 0.5;
    margin: 30px 0 40px 0;
}

.bottom-content-block {
    margin-top: 40px;
}

.info {
    background: #CAEDF1;
    width: 80%;
    color: black;
    margin: auto;
    margin-top: 2%;
    margin-bottom: 2%;
    border-radius: 20px;
}
.fieldset_title {
    margin: auto;
    margin-top: 2%;
    background-color: rgb(36, 109, 118, 0.35);
    width: 42%;
    height: 10%;
    text-align: center;
    padding: 2% 4%;
    border-radius: 30px;
    font-size: 30px;
    font-family: 'Lora';
}
.fieldset_info {
    margin: auto;
    text-align: center;
    width: 70%;
    padding-top: 2%;
    font-size: 25px;
    line-height: 1.4;
    font-family: Arial, Helvetica, sans-serif;
}
.important {
    color: #246D76;
}
.list {
    margin: auto;
    margin-top: 3%;
    margin-bottom: 2%;
    width: 80%;
    background-color: #BCD4D7;
    padding: 2% 6%;
    font-size: 25px;
    text-decoration: black;
    border-radius: 15px;
    line-height: 1.4;
    font-family: Arial, Helvetica, sans-serif;
}
li::marker {
    color: #246D76;
}

.middle_subtitle {
    font-size: 48px;
    color: #246D76;
    font-family: 'Times New Roman', Times, serif;
    padding-left: 4%;
}
.middle_info {
    font-size: 25px;
    color: black;
    padding: 2% 10%;
    padding-bottom: 0%;
    line-height: 1.4;
}
.middle_list {
    font-size: 25px;
    color: black;
    padding: 0% 11%;
    line-height: 1.4;
}

.container {
    margin: 30px auto;
    background: #F5F5F5;
    border-radius: 20px;
    padding: 20px 40px;
  }
  
  h1 {
    font-family:'Times New Roman', serif;
    font-weight: 400;
    font-size: 48px;
    color: #246d76;
    margin-bottom: 8px;
    padding-left: 2%;
  }
  
  .subtitle {
    font-family: 'Times New Roman', serif;
    font-size: 25px;
    margin-bottom: 20px;
    color: black;
    padding-left: 2%;
  }
  
  .controls {
    font-family: 'Times New Roman', serif;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 20px;
  }
  
  label {
    font-family: 'Times New Roman', serif;
    font-weight: 500;
    color: #004b59;
  }
  
  select {
    font-family: '';
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #004b59;
    font-size: 14px;
    cursor: pointer;
  }
  
  .city-header {
    color: #246d76;
    font-weight: 700;
    font-size: 36px;
    padding-bottom: 10px;
  }
  .table-container {
    background-color: #bcd4d7;
    padding: 20px;
    border-radius: 20px;
    padding-top: 18px;
  }
  
  table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 20px;
    overflow: hidden;
    font-size: 14px;
    background-color: #f9fcfc;
  }
  
  thead {
    background-color: #246d76;
    color: #f3f9f9;
  }
  
  th,
  td {
    border: 1px solid #c3d8da;
    padding: 16px 20px;
    text-align: center;
    vertical-align: middle;
    line-height: 1.5;
  }
  
  th {
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    padding: 18px 20px;
  }
  
  tbody tr {
    background-color: #f9fcfc;
  }
  
  tbody tr:nth-child(even) {
    background-color: #eef6f7;
  }
  
  tbody tr:hover {
    background-color: #dbeef0;
    transition: 0.3s;
  }
  
  td a {
    color: #12545a;
    text-decoration: none;
    font-weight: 700;
  }
  
  td a:hover {
    color: #0c2f33;
    text-decoration: underline;
  }
  
  table td {
    max-width: 200px;
    word-break: break-word;
  }
  
  .name {
    font-size: 16px;
    font-weight: 700;
    color: #0f464b;
  }
  .socials {
    line-height: 1.6;
  }
  .updated {
    font-weight: bold;
    color: #0f464b;
    background-color: #e4f2f3;
    padding: 10px;
  }

  /* Улучшенная адаптация для мобильных устройств */
  @media (max-width: 1024px) {
    th,
    td {
        padding: 14px 16px;
        font-size: 13px;
    }
    
    th {
        padding: 16px 16px;
    }
    
    .table-container {
        padding: 15px;
    }
  }

  @media (max-width: 830px) {
    .page-header {
        justify-content: center;
        text-align: center;
    }
    .top-content-block {
        flex-direction: column;
        gap: 25px;
    }
    .intro-text {
        text-align: center;
    }
    .top-content-block img {
        margin: auto;
        max-width: 60%;
    }
    .div_subtitle {
        font-size: 35px;
        padding-right: 10%;
    }
    .controls {
        flex-direction: column;
        align-items: flex-start;
    }
    .controls select {
        width: 100%;
        min-width: unset;
    }
    .container {
        padding: 15px 10px;
    }

    .table-container {
        padding: 12px;
        overflow-x: auto;
    }
    
    table {
        min-width: 800px;
    }
    
    th,
    td {
        padding: 12px 14px;
        font-size: 12px;
    }
    
    th {
        padding: 14px 14px;
        font-size: 13px;
        white-space: nowrap;
    }
  }

  @media (max-width: 768px) {
    .table-container {
        margin: 0 -10px;
        border-radius: 15px;
        padding: 10px;
    }
    
    th,
    td {
        padding: 10px 12px;
        font-size: 11px;
    }
    
    th {
        padding: 12px 12px;
        font-size: 12px;
    }
  }

  @media (max-width: 480px) {
    .info {
        width: 90%;
        font-size: 22px;
    }
    .fieldset_title {
        margin-top: 10%;
        margin-bottom: 5%;
        width: 55%;
        padding: 12% 8%;
    }
    .fieldset_info {
        font-size: 22px;
        margin-bottom: 5%;
    }
    .list {
        width: 70%;
        padding: 3% 5% 3% 10%;
        margin-bottom: 10%;
        font-size: 20px
    }
    .middle_subtitle {
        text-align: center;
        font-size: 30px
    }
    .middle_info {
        font-size: 20px;
    }
    .middle_list {
        font-size: 20px;
        padding-left: 15%;
    }
    h1 {
        font-size: 30px;
        text-align: center;
        margin-top: -10%;
        margin-bottom: 4%;
    }
    .subtitle {
        text-align: center;
        font-size: 22px;
    }
    
    /* Улучшенная адаптация таблицы для маленьких экранов */
    .table-container {
        padding: 8px;
        margin: 0 -5px;
        border-radius: 12px;
    }
    
    table {
        min-width: 900px;
    }
    
    th,
    td {
        padding: 10px 8px;
        font-size: 10px;
        line-height: 1.3;
    }
    
    th {
        padding: 11px 8px;
        font-size: 11px;
    }
    
    .city-header {
        font-size: 28px;
        text-align: center;
    }
    
    .container {
        padding: 10px 5px;
    }
}

/* Дополнительные улучшения для очень маленьких экранов */
@media (max-width: 360px) {
    .table-container {
        padding: 5px;
    }
    
    th,
    td {
        padding: 8px 6px;
        font-size: 9px;
    }
    
    th {
        padding: 9px 6px;
        font-size: 10px;
    }
}

/* Специфичные исправления для Яндекс Браузера */
@supports (-webkit-appearance:none) {
    /* Для WebKit браузеров включая Яндекс */
    .table-container {
        -webkit-overflow-scrolling: touch;
    }
    
    table {
        border-collapse: separate;
        border-spacing: 0;
    }
    
    th, td {
        -webkit-tap-highlight-color: transparent;
    }
}

/* Альтернативное решение для создания пространства между строками */
.table-container table tbody tr {
    border-bottom: 8px solid #bcd4d7;
}

.table-container table tbody tr:last-child {
    border-bottom: none;
}

/* Дополнительные отступы для ячеек в мобильной версии */
@media (max-width: 830px) {
    .table-container table tbody tr {
        border-bottom: 6px solid #bcd4d7;
    }
    
    th, td {
        position: relative;
    }
}

@media (max-width: 480px) {
    .table-container table tbody tr {
        border-bottom: 4px solid #bcd4d7;
    }
}