/* Reset и базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0AD1C9;
    --primary-dark: #08B5AE;
    --primary-light: #2DE8E1;
    --text-color: #1A1A1A;
    --text-light: #666666;
    --bg-color: #FFFFFF;
    --bg-light: #F5F5F5;
    --border-color: #E0E0E0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --gradient-primary: linear-gradient(135deg, #0AD1C9 0%, #08B5AE 100%);
    --gradient-primary-light: linear-gradient(135deg, #2DE8E1 0%, #0AD1C9 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: var(--bg-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    height: 80px;
}

.logo-image {
    height: 100%;
    width: auto;
    max-height: 80px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
    background: linear-gradient(90deg, transparent 0%, rgba(10, 209, 201, 0.05) 50%, transparent 100%);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    width: 100%;
}

.btn-donate-nav {
    background: var(--gradient-primary);
    color: white !important;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-donate-nav:hover {
    background: var(--gradient-primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-donate-nav::after {
    display: none;
}

.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(10, 209, 201, 0.05) 0%, var(--bg-color) 100%);
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-title.centered {
    text-align: center;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 50px;
}

.section-subtitle.centered {
    text-align: center;
}

/* About Section */
.about-section {
    background-color: var(--bg-color);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow);
    object-fit: cover;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 18px;
    line-height: 1.8;
}

/* Dreams Section */
.dreams-section {
    background-color: var(--bg-light);
    overflow: visible;
}

.dreams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
    overflow: visible;
}

.dream-card {
    background-color: var(--bg-color);
    border-radius: 12px;
    overflow: visible;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 2px solid transparent;
    z-index: 1;
}

.dream-card:hover {
    z-index: 100;
}

.dream-card:hover {
    transform: translateY(-15px) rotate(1deg) scale(1.03);
    box-shadow: 0 15px 40px rgba(10, 209, 201, 0.3), 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dream-image {
    width: 100%;
    min-height: 250px;
    max-height: 400px;
    height: auto;
    aspect-ratio: 4 / 3;
    overflow: visible;
    background-color: var(--bg-light);
    position: relative;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dream-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 209, 201, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.dream-card:hover .dream-image::after {
    opacity: 1;
}

.dream-image img {
    width: 100%;
    height: 100%;
    min-height: 250px;
    object-fit: contain;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.4s ease, z-index 0.4s ease;
    filter: brightness(1) contrast(1);
    position: relative;
    z-index: 1;
}

.dream-image img:first-of-type {
    position: relative;
    z-index: 1;
}

.dream-card:hover .dream-image img:first-of-type {
    transform: scale(1.15) rotate(2deg);
    filter: brightness(1.1) contrast(1.1);
    z-index: 200;
    position: relative;
    object-fit: contain;
}

.dream-info {
    padding: 25px;
    position: relative;
    z-index: 2;
    transition: background-color 0.4s ease;
}

.dream-card:hover .dream-info {
    background: linear-gradient(to bottom, rgba(10, 209, 201, 0.03), transparent);
}

.dream-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.child-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    background-color: white;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: grayscale(100%);
    opacity: 0.8;
}

.dream-card:hover .child-photo {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 4px 15px rgba(10, 209, 201, 0.3);
    filter: grayscale(0%);
    opacity: 1;
    border-color: var(--primary-color);
}

.dream-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
    position: relative;
    transition: all 0.4s ease;
    display: inline-block;
}

.dream-card:hover .dream-name {
    color: var(--primary-color);
    transform: translateX(5px);
}

.dream-name::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    transition: width 0.4s ease;
}

.dream-card:hover .dream-name::after {
    width: calc(100% - 0px);
}

.dream-text {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.6;
    transition: color 0.4s ease, transform 0.4s ease;
    transform: translateY(0);
}

.dream-card:hover .dream-text {
    color: var(--text-color);
    transform: translateY(-2px);
}

/* Partners Section */
.partners-section {
    background-color: var(--bg-color);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    align-items: stretch;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 150px;
    height: 150px;
    max-height: 150px;
    padding: 25px;
    background-color: var(--bg-light);
    border-radius: 8px;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.partner-logo img {
    width: 100%;
    height: 100px;
    max-width: 100%;
    max-height: 100px;
    min-height: 100px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition);
    object-fit: contain;
    display: block;
}

.partner-logo:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgba(10, 209, 201, 0.1) 0%, rgba(8, 181, 174, 0.05) 100%);
    box-shadow: 0 4px 15px rgba(10, 209, 201, 0.2);
    border: 2px solid var(--primary-color);
}

.partner-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.partner-placeholder {
    color: var(--text-light);
    font-size: 14px;
    text-align: center;
    font-weight: 500;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
}

/* Donate Section */
.donate-section {
    background: var(--gradient-primary);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.donate-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(45, 232, 225, 0.3) 0%, rgba(10, 209, 201, 0.1) 100%);
    pointer-events: none;
}

.donate-content {
    position: relative;
    z-index: 1;
}

.donate-content {
    max-width: 700px;
    margin: 0 auto;
}

.donate-section .section-title {
    color: white;
    margin-bottom: 20px;
}

.donate-text {
    font-size: 20px;
    line-height: 1.8;
    margin-bottom: 40px;
    opacity: 0.95;
}

.btn-donate-large {
    background-color: white;
    color: var(--primary-color);
    padding: 18px 48px;
    font-size: 20px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-donate-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary-light);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-donate-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(10, 209, 201, 0.4);
    color: white;
}

.btn-donate-large:hover::before {
    left: 0;
}

/* Footer */
.footer {
    background-color: #1A1A1A;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.footer-subtitle {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    line-height: 1.6;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    transition: var(--transition);
}

.social-link:hover {
    color: white;
    border-color: var(--primary-color);
    background: var(--gradient-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* Анимации */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Адаптивность */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 48px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .about-content {
        gap: 40px;
    }
    
    .dreams-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
        max-width: 100%;
        align-items: stretch;
    }
    
    .partner-logo {
        min-height: 140px;
        height: 140px;
        max-height: 140px;
        padding: 20px;
        box-sizing: border-box;
    }
    
    .partner-logo img {
        height: 90px;
        max-height: 90px;
        min-height: 90px;
    }
}

@media (max-width: 768px) {
    .logo {
        height: 50px;
    }
    
    .logo-image {
        max-height: 50px;
    }
    
    .burger-menu {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top:90px;
        left: 0;
        right: 0;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        background-color: var(--bg-color);
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        transition: max-height 0.3s ease, padding 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        max-height: 500px;
        padding: 20px 0;
    }
    
    .nav-menu .nav-link {
        width: 100%;
        padding: 18px 20px;
        border-bottom: none;
        display: block;
        font-size: 18px;
        text-align: center;
        margin: 0;
    }
    
    .nav-menu .nav-link:hover {
        background: rgba(10, 209, 201, 0.1);
        color: var(--primary-color);
    }
    
    .nav-menu .nav-link::after {
        display: none;
    }
    
    .nav-menu .btn-donate-nav {
        margin: 10px 20px 0;
        width: calc(100% - 40px);
        text-align: center;
        padding: 15px 20px;
        border-radius: 8px;
        background: var(--gradient-primary) !important;
        color: white !important;
    }
    
    .nav-menu .btn-donate-nav:hover {
        background: var(--gradient-primary-light) !important;
        color: white !important;
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(10, 209, 201, 0.4);
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-text p {
        font-size: 16px;
    }
    
    .dreams-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        max-width: 100%;
        align-items: stretch;
    }
    
    .partner-logo {
        min-height: 120px;
        height: 120px;
        max-height: 120px;
        padding: 15px;
        box-sizing: border-box;
    }
    
    .partner-logo img {
        height: 80px;
        max-height: 80px;
        min-height: 80px;
    }
    
    .donate-text {
        font-size: 18px;
    }
    
    .btn-donate-large {
        padding: 16px 40px;
        font-size: 18px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .burger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .burger-menu.active span:nth-child(2) {
        opacity: 0;
    }
    
    .burger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}

@media (max-width: 480px) {
    .logo {
        height: 40px;
    }
    
    .logo-image {
        max-height: 40px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        max-width: 100%;
        align-items: stretch;
    }
    
    .partner-logo {
        min-height: 100px;
        height: 100px;
        max-height: 100px;
        padding: 15px;
        box-sizing: border-box;
    }
    
    .partner-logo img {
        height: 70px;
        max-height: 70px;
        min-height: 70px;
    }
}
