/* ========= /css/main.css ========= */
:root {
    --primary: #40bfbc;
    --secondary: #b0906a;
    --dark: #1a2a3a;
    --light: #f5f7fa;
    --gray: #e5e9f0;
    --text: #2c3e50;
    --white: #ffffff;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', Roboto, system-ui, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--white);
}
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}
.section {
    padding: 64px 0;
    border-bottom: 1px solid var(--gray);
}
.section__title {
    font-size: 2.2rem;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 32px;
    position: relative;
    padding-bottom: 16px;
}
.section__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--primary);
}
.section__intro {
    font-size: 1.2rem;
    max-width: 800px;
    margin-bottom: 40px;
    color: #4a5a6a;
}
.bg-light {
    background: var(--light);
}
.grid {
    display: grid;
    gap: 32px;
}
.grid--2 { grid-template-columns: repeat(2,1fr); }
.grid--3 { grid-template-columns: repeat(3,1fr); }
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
    border: 2px solid transparent;
}
.btn--primary {
    background: var(--primary);
    color: var(--white);
}
.btn--primary:hover {
    background: #2ea09e;
}
.btn--outline {
    border-color: var(--primary);
    color: var(--primary);
}
/* Герой */
.hero {
    background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
    padding: 48px 0;
}
.hero__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}
.hero__content {
    flex: 1 1 500px;
}
.hero__title {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 20px;
}
.hero__subtitle {
    font-size: 1.3rem;
    color: var(--secondary);
    margin-bottom: 24px;
}
.hero__badge {
    background: var(--primary);
    color: white;
    padding: 8px 20px;
    border-radius: 40px;
    display: inline-block;
    margin-bottom: 24px;
}
.hero__logo-wrapper {
    flex: 0 0 200px;
}
.hero__logo {
    max-width: 100%;
    height: auto;
}
/* карточки */
.card {
    background: white;
    padding: 28px 20px;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.03);
    border-left: 6px solid var(--primary);
}
.card__icon {
    font-size: 2.8rem;
    margin-bottom: 16px;
}
.card__title {
    font-size: 1.4rem;
    margin-bottom: 12px;
}
/* программа */
.program-blocks {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 24px;
}
.program-block {
    background: var(--white);
    border: 1px solid var(--gray);
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    transition: 0.2s;
}
.program-block:hover {
    border-color: var(--primary);
}
.program-block__num {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    opacity: 0.4;
    display: block;
    margin-bottom: 8px;
}
/* реабилитация */
.rehab__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}
.rehab__item {
    flex: 1 1 200px;
    background: var(--light);
    padding: 32px 16px;
    text-align: center;
    border-top: 6px solid;
    border-radius: 8px;
    font-size: 1.3rem;
    font-weight: 600;
}
/* клубы */
.clubs__list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
}
.club-tag {
    background: var(--white);
    border: 1px solid var(--secondary);
    color: var(--secondary);
    padding: 10px 24px;
    border-radius: 48px;
    font-size: 1.1rem;
    font-weight: 500;
}
/* партнеры */
.partners__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}
.partner {
    background: var(--light);
    padding: 20px 16px;
    border-radius: 12px;
    text-align: center;
    border-bottom: 3px solid var(--primary);
    font-weight: 500;
}
/* timeline */
.timeline__wrapper {
    border-left: 4px solid var(--primary);
    padding-left: 32px;
}
.timeline__item {
    margin-bottom: 36px;
    position: relative;
}
.timeline__item::before {
    content: '';
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
    position: absolute;
    left: -40px;
    top: 6px;
}
.timeline__date {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--secondary);
}
.contacts {
    text-align: center;
    background: var(--dark);
    color: white;
}
.contacts .section__title {
    color: white;
}
.contacts .section__title::after {
    background: var(--secondary);
    left: 50%;
    transform: translateX(-50%);
}
.contacts__names {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--primary);
}
.contacts__details a {
    color: white;
    text-decoration: none;
    border-bottom: 1px dotted var(--primary);
}
.contacts__slogan {
    font-size: 1.3rem;
    margin-top: 32px;
    font-style: italic;
}
@media (max-width: 768px) {
    .grid--2, .grid--3, .program-blocks { grid-template-columns: 1fr; }
    .section { padding: 40px 0; }
    .hero__title { font-size: 2rem; }
    .section__title { font-size: 1.8rem; }
}

.partners-carousel-section {
    background: #ffffff;
    overflow: hidden;
    padding: 40px 0 60px;
}
.carousel-container {
    position: relative;
    width: 100%;
    margin: 30px 0 20px;
    overflow: hidden;
}
.carousel-track {
    display: flex;
    gap: 40px;
    animation: scrollLogos 35s linear infinite;
    width: max-content;
}
.carousel-track:hover {
    animation-play-state: paused;
}
.carousel-slide {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 100px;
    background: #fff;
    border-radius: 16px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    transition: border-color 0.2s;
}
.carousel-slide:hover {
    border-color: var(--primary);
}
.partner-logo {
    max-width: 100%;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(10%);
    opacity: 0.85;
    transition: opacity 0.2s, filter 0.2s;
}
.carousel-slide:hover .partner-logo {
    opacity: 1;
    filter: grayscale(0%);
}
.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}
.carousel-btn {
    background: white;
    border: 2px solid var(--primary);
    color: var(--primary);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.carousel-btn:hover {
    background: var(--primary);
    color: white;
}

@keyframes scrollLogos {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-160px * 7 - 40px * 7)); } /* сдвиг на половину трека (7-8 элементов) */
}
/* Адаптация под мобильные */
@media (max-width: 768px) {
    .carousel-slide { width: 130px; height: 80px; }
    @keyframes scrollLogos {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-130px * 7 - 30px * 7)); }
    }
}

.contacts-two-col {
    background: linear-gradient(145deg, #f8fbfe 0%, #ffffff 100%);
    padding: 64px 0;
    border-top: 1px solid var(--gray);
    border-bottom: 1px solid var(--gray);
}

.coordinators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px 30px;
    margin: 48px 0 40px;
}

.coordinator-card {
    background: white;
    border-radius: 32px;
    padding: 32px 24px 28px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.04);
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s;
    border: 1px solid rgba(64, 191, 188, 0.1);
}

.coordinator-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px -8px rgba(64, 191, 188, 0.2);
    border-color: var(--primary);
}

.coordinator-photo {
    width: 160px;
    height: 160px;
    margin: 0 auto 24px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary);
    box-shadow: 0 8px 16px rgba(176, 144, 106, 0.15);
}

.coordinator-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.coordinator-name {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
    line-height: 1.2;
}

.coordinator-role {
    font-size: 1rem;
    color: var(--secondary);
    margin-bottom: 24px;
    min-height: 48px;
    padding: 0 8px;
    font-weight: 500;
}

.coordinator-contacts {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
    justify-content: center;
    border-top: 2px dashed var(--primary);
    padding-top: 24px;
    margin-top: 8px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-icon {
    font-size: 1.3rem;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.05));
}

.contact-item a {
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px dotted transparent;
    transition: border-color 0.2s, color 0.2s;
}

.contact-item a:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.coordinators-slogan {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--dark);
    background: rgba(64, 191, 188, 0.05);
    padding: 28px 20px;
    border-radius: 60px;
    margin-top: 20px;
    border-left: 6px solid var(--primary);
    border-right: 6px solid var(--secondary);
    max-width: 900px;
    margin: 50px auto;
    font-style: italic;
}

/* Адаптация для узких экранов */
@media (max-width: 640px) {
    .coordinators-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .coordinator-photo {
        width: 140px;
        height: 140px;
    }
    .coordinator-name {
        font-size: 1.4rem;
    }
    .coordinators-slogan {
        font-size: 1.2rem;
        padding: 20px 12px;
    }
	
