.team-accordion-section {
	padding: 0 0 140px;
    max-width: 1320px;
    margin: 0 auto;

    @media (max-width: 768px) {
        padding: 0 20px 60px;
    }
}

.ta-section-title {
	font-family: 'Closer Text', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 130%;
    letter-spacing: -0.01em;
    color: #004735;
    border-bottom: 1px solid rgba(0, 74, 51, 0.1);
    padding-bottom: 14px;
    margin: 0 0 60px;

    @media (max-width: 768px) {
        font-size: 16px;
        margin: 0 0 30px;
    }
}


/* GRID */
.ta-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 110px;
	align-items: start;

    @media (max-width: 768px) {
        gap: 30px;
        grid-template-columns: 1fr;
    }
}


/* LEFT PANEL */
.ta-left {
    background: rgba(0, 71, 53, 1);
    border-radius: 20px;
    padding: 30px 0 30px 30px;

    @media (max-width: 768px) {
        padding: 20px 0 20px 20px;
    }
}

.ta-left-name {
	font-family: 'Closer Text', sans-serif;
    font-weight: 500;
    font-size: 32px;
    line-height: 110%;
    letter-spacing: -0.01em;
    color: rgba(255, 255, 255, 1);
    margin: 0;
    max-width: calc(100% - 40px);

    @media (max-width: 768px) {
        font-size: 21px;
        max-width: calc(100% - 30px);
    }
}
.ta-left-image {
    margin: 20px 0 0;
}
.ta-left-image img {
	width: 100%;
	border-radius: 20px; /* replace with your mask */
	margin-bottom: 20px;
}

.ta-left-position {
	font-family: 'Closer Text', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 130%;
    letter-spacing: -0.01em;
    color: rgba(78, 148, 133, 1);
    margin: -90px 0 14px;
    max-width: 280px;

    @media (max-width: 768px) {
        max-width: calc(100% - 30px);
        margin: -30px 0 14px;
    }
}

.ta-left-short,
.ta-left-about {
    font-family: 'Closer Text', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 130%;
    letter-spacing: -0.01em;
    color: rgba(241, 245, 248, 1);
    max-width: calc(100% - 40px);
    @media (max-width: 768px) {
        max-width: calc(100% - 30px);
    }
}


/* RIGHT SIDE — ACCORDION */

.ta-item {
    border-bottom: 1px solid rgba(0, 74, 51, 0.1);
	padding: 14px 0;
}

.ta-item-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
}

.ta-item-title {
	font-family: 'Closer Text', sans-serif;
    font-weight: 500;
    font-size: 24px;
    line-height: 120%;
    letter-spacing: -0.02em;
    color: rgba(0, 71, 53, 1);
    margin: 0;

    @media (max-width: 768px) {
        font-size: 21px;
        letter-spacing: -0.01em;
    }
}

.ta-item-toggle {
	background: none;
	border: none;
	font-size: 24px;
	font-weight: 500;
	color: #003d2e;
	cursor: pointer;

    @media (max-width: 768px) {
        font-size: 20px;
    }
}

.ta-item-content {
	/* display: none; */
	/* padding: 30px 0 30px 30px; */
	background: #CFE2E0;
	border-radius: 16px;
    /* margin: 20px 0; */
    color: #004735;
    font-family: 'Closer Text', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 130%;
    letter-spacing: -0.01em;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;

    @media (max-width: 768px) {
        /* padding: 20px 0 20px 20px; */
        /* margin: 14px 0; */
        font-size: 14px;
    }
}

.ta-item-content p {
    max-width: 515px;
}
.ta-item.open .ta-item-content {
	/* display: block; */
    opacity: 1;
    max-height: 1000px;
    padding: 30px 0 30px 30px;
    margin: 20px 0;

    @media (max-width: 768px) {
        padding: 20px 50px 20px 20px;
        margin: 14px 0;
    }
}


/* NEW */
.ta-item-content {
    background: #CFE2E0;
    border-radius: 16px;
    color: #004735;
    font-family: 'Closer Text', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 130%;
    letter-spacing: -0.01em;

    overflow: hidden;
    max-height: 0;
    opacity: 0;

    padding: 0 30px;             /* ← padding по бокам сразу */
    padding-top: 0;              /* ← сверху/снизу включим только в open */
    padding-bottom: 0;
    transition:
        max-height 0.35s ease,
        opacity 0.35s ease,
        padding-top 0.35s ease,
        padding-bottom 0.35s ease;
}

.ta-item.open .ta-item-content {
    opacity: 1;
    max-height: 500px;           /* достаточно большого значения */
    padding-top: 30px;
    padding-bottom: 30px;
}

/* mobile */
@media (max-width: 768px) {
    .ta-item-content {
        font-size: 14px;
        padding: 0 20px;
    }

    .ta-item.open .ta-item-content {
        padding-top: 20px;
        padding-bottom: 20px;
    }
}


.ta-item.open .ta-item-toggle {
	transform: rotate(0);
}

/* @media (max-width: 900px) {
	.ta-grid {
		grid-template-columns: 1fr;
	}
} */
