.funds-wrapper{
    background:#fff;
    border:1px solid #dfe6e4;
    padding:25px;
}

.funds-controls{
    display:flex;
    justify-content:space-between;
    margin-bottom:20px;
}

.tabs button{
    border:1px solid #d6e1df;
    background:#f6f9f8;
    padding:6px 14px;
    cursor:pointer;
}

.funds-tabs {
    display: flex;
}
.funds-table{
    width:100%;
    border-collapse:collapse;
}

.funds-table th,
.funds-table td{
    padding:14px;
    border-top:1px solid #e5ecea;
    text-align:left;
}

.fund-name{
    font-weight:600;
    color:#2a6b62;
}

.fund-type{
    font-size:13px;
    color:#6c8e8a;
}

.funds h1 {

}

.funds {
    max-width: 1100px;
    padding-bottom: 20px;
}


/* Список */
.funds-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px;
}
/* Инфо */
.funds__info {
    background: #fff;
    border: 1px solid #e1e5e8;
    border-radius: 6px;
    padding: 24px;
    margin-bottom: 24px;
    color: #5f6f75;
    font-size: 14px;
    line-height: 1.5;
}

.funds__info p {
    margin: 0 0 12px;
}

.funds__info p:last-child {
    margin-bottom: 0;
}

/* Таблица */
.funds {
    max-width: 1100px;
}

/* Инфо */
.funds__info {
    background: #fff;
    border: 1px solid #e1e5e8;
    border-radius: 6px;
    padding: 24px;
    margin-bottom: 24px;
    color: #5f6f75;
    font-size: 14px;
    line-height: 1.5;
}

.funds__info p {
    margin: 0 0 12px;
}

.funds__info p:last-child {
    margin-bottom: 0;
}

/* Таблица */
.funds__table {
    padding: 20px 0;
}

/* =========================
   TOP
========================= */

.funds__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.funds__title {
    font-size: 40px;
    line-height: 1.1;
    font-weight: 500;
    color: #1f6664;
}

.funds__search-wrap {
    position: relative;
    width: 400px;
    max-width: 100%;
}

.funds__search {
    width: 100%;
    height: 56px;
    border: 1px solid #cfd6da;
    background: #fff;
    padding: 0 20px 0 52px;
    font-size: 18px;
    color: #4a5568;
    outline: none;
}

.funds__search-wrap::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);

    width: 16px;
    height: 16px;

    background: url("../icons/search.svg") no-repeat center;
    background-size: 16px 16px;

    opacity: 0.6;
    pointer-events: none;
}

/* =========================
   TABS
========================= */

.funds-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.docs-tab {
    height: 52px;
    padding: 0 28px;
    border: 1px solid #cfd6da;
    background: #fff;
    cursor: pointer;

    font-size: 18px;
    font-weight: 500;
    color: #1f6664;

    transition: .2s;
}

.docs-tab:not(:first-child) {
    border-left: none;
}

.docs-tab:hover,
.docs-tab.active {
    background: #1f6664;
    color: #fff;
}

/* =========================
   GRID
========================= */

.funds__row--head {
    display: none;
}

.funds__table {
    display: flex;
    flex-wrap: wrap;
    gap: 32px 24px;
}

/* карточка */

.funds__row.js-filter-row {
    display: flex;
    flex-direction: column;

    width: calc(33.333% - 16px);

    min-height: 180px;

    padding: 28px 32px;

    background: #fff;
    border: 1px solid #d9dee2;

    text-decoration: none;

    transition: .2s;
}

.funds__row.js-filter-row:hover {
    border-color: #1f6664;
    transform: translateY(-2px);
}

/* =========================
   CONTENT
========================= */

.funds__cell {
    font-size: 18px;
    line-height: 1.2;
    color: #1f2937;
    margin-bottom: 10px;
}

.funds__cell--name {
    font-size: 24px;
    line-height: 1.2;
    font-weight: 500;
    color: #1f6664;
    margin-bottom: 20px;
}

.funds__cell--name span {
    display: block;
    margin-top: 6px;

    font-size: 16px;
    font-weight: 400;
    color: #667085;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 1100px) {

    .funds__row.js-filter-row {
        width: calc(50% - 12px);
    }
}

@media (max-width: 700px) {

    .funds__top {
        flex-direction: column;
        align-items: stretch;
    }

    .funds__search-wrap {
        width: 100%;
    }

    .funds__row.js-filter-row {
        width: 100%;
    }

    .funds__title {
        font-size: 32px;
    }

    .funds__cell--name {
        font-size: 22px;
    }
}
/* Список */

/* Карточка */
body {
    font-family: Arial, sans-serif;
    background: #eef3f3;
}

.fund-card {
    max-width: 1000px;
    margin: 0 auto;
    padding: 24px;
    border-radius: 12px;
}

.fund-title {
    text-align: center;
    color: #2f6f6d;
    margin-bottom: 30px;
}

.controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.dates input {
    padding: 6px;
    border: 1px solid #cfdede;
    border-radius: 2px;
    margin-right: 10px;
}
.dates-title {
    display: block;
    font-family: Inter;
    font-weight: 500;
    color: #6b8b8a;
    font-size: 14px;
    line-height: 20px;
    padding: 5px 0px;
}
.period {
    width: 260px;
}

.period-label {
    display: block;
    color: #6b8b8a;
    font-size: 14px;
}

.period-select {
    width: 100%;
    padding: 6px 12px;
    font-size: 14px;
    color: #2f6f6d;

    background-color: #fff;
    border: 1px solid #cfdede;
    border-radius: 2px;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-image: url("data:image/svg+xml;utf8,<svg fill='%232f6f6d' height='20' viewBox='0 0 20 20' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M5 7l5 5 5-5'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;

    cursor: pointer;
}

.period-select:hover {
    border-color: #9fbcbc;
}

.period-select:focus {
    outline: none;
    border-color: #2f6f6d;
    box-shadow: 0 0 0 2px rgba(47,111,109,0.1);
}

.stats {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.stat {
    flex: 1;
    background: #fff;
    padding: 16px;
    border: 1px solid #cfdede;
    border-radius: 2px;
}

.stat span {
    display: block;
    color: #6b8b8a;
    margin-bottom: 6px;
}

.stat strong {
    font-size: 18px;
}

.positive {
    color: #1a8f5a;
}

canvas {
    width: 100%;
    height: 300px;
}

.tooltip {
    position: absolute;
    min-width: 12vw;
    background: white;
    border: 1px solid #ccc;
    padding: 10px;
    font-size: 12px;
    border-radius: 2px;
    pointer-events: none;
    display: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    line-height: 1.2;
    z-index: 5;
}
/*.tooltip:before {*/
/*    position: absolute;*/
/*    top: -16px;*/
/*    left: 80px;*/
/*    content: '';*/
/*    width: 32px;*/
/*    height: 16px;*/
/*    background: url(../icons/under-tooltip.svg) center no-repeat;*/
/*    transform: rotate(180deg);*/
/*}*/

/* Карточка */

/* График */
.chart-container {
    position: relative;
    background: #fff;
    /*padding: 30px;*/
    border-radius: 2px;
    border: 1px solid #cfdede;
}
.chart-svg {
    width: 100%;
    height: auto;
}
.grid line {
    stroke: #dfe5e3;
    stroke-width: 1;
}
.line {
    fill: none;
    stroke: #2f7f7f;
    stroke-width: 2.5;
    filter: url(#shadow);
}
.area {
    fill: url(#areaGradient);
}
.gradient-top {
    stop-color: #2f7f7f;
    stop-opacity: 0.25;
}
.gradient-bottom {
    stop-color: #2f7f7f;
    stop-opacity: 0;
}
.shadow {
    flood-opacity: 0.2;
}
.point {
    r: 6;
    fill: #2f7f7f;
}
.glow {
    r: 16;
    fill: #2f7f7f;
    opacity: 0.15;
}
.overlay {
    fill: transparent;
}
.tooltip {
    position: absolute;
    background: #fff;
    border-radius: 2px;
    padding: 14px 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    pointer-events: none;
    display: none;
    font-family: sans-serif;
    font-size: 14px;
    color: #2b3a3a;
}
.x-axis text {
    fill: #7a8a8a;
    font-size: 12px;
    font-family: sans-serif;
    text-anchor: middle;
}

.x-axis line {
    stroke: #dfe5e3;
}

.y-axis text {
    fill: #8fa5a4;
    font-size: 12px;
    text-anchor: start;
}

.chart-notice {
    line-height: 1.5;
    padding: 0 32px;
}

/* KPI блок */
.kpi-section {
    margin-top: 30px;
}

.kpi-grid {
    display: grid;
    grid-template-columns: 349fr 349fr 501fr;
    gap: 16px;
    padding: 16px 0 0;
    border-radius: 2px;
}

.kpi-card {
    background: #ffffff;
    padding: 16px;
    border: 1px solid #E4E7EC;
    border-radius: 2px;
    position: relative;
}

.kpi-title {
    color: #6b8b8a;
    font-size: 14px;
    margin-bottom: 4px;
}

.kpi-sub {
    color: #6b8b8a;
    font-size: 13px;
    margin-top: 10px;
}

.kpi-value {
    font-weight: bold;
    margin-bottom: 10px;
}

.kpi-date {
    position: absolute;
    bottom: 10px;
    right: 12px;
    font-size: 12px;
    color: #8fa5a4;
}

.kpi-footer {
    text-align: right;
    font-size: 12px;
    color: #8fa5a4;
    margin-top: 6px;
}

/* Контейнер */
.docs-section {
    margin-top: 30px;
    border-radius: 2px;
    padding: 16px;
    background-color: #fff;
    border: 1px solid #cfdede;
}

/* Tabs */
.docs-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 10px;
}
.docs-table .docs-row:not(.docs-head):nth-of-type(even) {
    background: #f5f9f9;
}

.docs-tab {
    padding: 10px 18px;
    border: 1px solid #d6e2e2;
    background: #e9f0f0;
    color: #2f6f6d;
    cursor: pointer;
    font-size: 14px;
    box-sizing: border-box;
}

.docs-tab:not(:last-child) {
    border-right: none;
}

.docs-tab:first-child {
    border-radius: 2px 0 0 2px;
}

.docs-tab:last-child {
    border-radius: 0 2px 2px 0;
}

/* Таблица */
.docs-table {
    font-size: 14px;
    background: #ffffff;
    border: 1px solid #d6e2e2;
    border-radius: 2px;
    overflow: hidden;
}

/* Строки */
.docs-row {
    display: grid;
    grid-template-columns: 1fr 180px;
    padding: 14px 16px;
    border-bottom: 1px solid #eef3f3;
    align-items: center;
}

/* Заголовок */
.docs-head {
    background: #f5f9f9;
    color: #6b8b8a;
    font-size: 14px;
}

/* Hover как в макете */
.docs-row:not(.docs-head):hover {
    background: #f3f7f7;
}

/* Ссылки */
.docs-row a {
    color: #2f6f6d;
    text-decoration: underline;
}

/* Дата */
.docs-row div:last-child {
    text-align: right;
    color: #6b8b8a;
}

/* Последняя строка */
.docs-row:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {

    .funds__search {
        width: 100%;
    }
    .period {
        width: 100%;
    }
    .dates {
        display: none;
    }
    .stats {
        flex-direction: column;
    }
    .kpi-grid {
        display: flex;
        flex-direction: column;
    }
    .chart-container {
        padding: 0;
    }
    .docs-tabs {
        display: none;
    }
    .chart-notice {
        font-size: 12px;
        padding: 0 16px;
        line-height: 1.2;
    }
}