* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.header-main {
    background: linear-gradient(135deg, #3498DB 0%, #2980b9 100%);
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-main .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.kindergarten-title {
    text-align: center;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.kindergarten-icon {
    font-size: 3rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.kindergarten-title .main-text {
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: white;
}

.kindergarten-title .number {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 2px 15px;
    border-radius: 50px;
    font-size: 1.6rem;
    font-weight: 700;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
}

.header-main h1 {
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 8px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.header-main p {
    font-size: 0.9rem;
    text-align: center;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.main-content {
    flex: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-divider {
    text-align: center;
    margin: 60px 0;
    padding: 8px;
    position: relative;
}

.section-divider:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #3498DB, transparent);
}

.section-divider .divider-text {
    background: #f8f9fa;
    color: #3498DB;
    font-size: 1rem;
    font-weight: 600;
    padding: 0 20px;
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.card-link {
    text-decoration: none;
    display: block;
    height: 100%;
}

.card-link-disabled {
    pointer-events: none;
    cursor: default;
}

.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #e1e8ed;
    transition: all 0.3s ease;
    cursor: pointer;
}

.card:hover:not(.card-disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-disabled {
    background: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
}

.card-disabled .card-header {
    background-color: #95a5a6 !important;
}

.card-header {
    background-color: #3498DB;
    padding: 18px 12px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.card-2 .card-header {
    background-color: #2ecc71;
}

.card-icon-container {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.card-icon {
    font-size: 1.8rem;
    color: white;
}

.card-header h2 {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    text-align: center;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-description {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 15px;
    flex-grow: 1;
    border-left: 3px solid #3498DB;
    min-height: 90px;
    display: flex;
    align-items: center;
}

.card-2 .card-description {
    border-left-color: #2ecc71;
}

.card-disabled .card-description {
    border-left-color: #95a5a6;
}

.card-description p {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    text-align: center;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
}

.card:hover:not(.card-disabled) .card-overlay {
    background: rgba(0, 0, 0, 0.1);
}

.footer {
    background-color: #2c3e50;
    color: white;
    padding: 15px 0;
    margin-top: auto;
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-info {
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: 12px;
}

.footer-link {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: white;
}

/* Адаптивность */
@media (max-width: 768px) {
    .kindergarten-title {
        flex-direction: column;
        gap: 8px;
    }
    
    .kindergarten-icon {
        font-size: 2.5rem;
    }
    
    .kindergarten-title .main-text {
        font-size: 1.5rem;
    }
    
    .kindergarten-title .number {
        font-size: 1.3rem;
        padding: 2px 12px;
    }
    
    .header-main h1 {
        font-size: 1.1rem;
    }
    
    .header-main p {
        font-size: 0.8rem;
    }
    
    .section-divider {
        margin: 6px 0;
    }
    
    .section-divider .divider-text {
        font-size: 0.9rem;
        padding: 0 12px;
    }
    
    .cards-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .card-header {
        padding: 15px 10px;
    }
    
    .card-icon-container {
        width: 55px;
        height: 55px;
    }
    
    .card-icon {
        font-size: 1.6rem;
    }
    
    .card-header h2 {
        font-size: 1rem;
        min-height: 55px;
    }
    
    .card-content {
        padding: 15px;
    }
    
    .card-description {
        padding: 10px;
        min-height: 80px;
    }
    
    .card-description p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .header-main {
        padding: 12px 0;
    }
    
    .kindergarten-icon {
        font-size: 2rem;
    }
    
    .kindergarten-title .main-text {
        font-size: 1.3rem;
    }
    
    .kindergarten-title .number {
        font-size: 1.1rem;
        padding: 1px 10px;
    }
    
    .header-main h1 {
        font-size: 1rem;
    }
    
    .header-main p {
        font-size: 0.75rem;
    }
    
    .main-content {
        padding: 10px 0;
    }
    
    .section-divider {
        margin: 5px 0;
    }
    
    .section-divider .divider-text {
        font-size: 0.8rem;
        padding: 0 10px;
    }
    
    .cards-container {
        gap: 12px;
        margin-bottom: 12px;
    }
    
    .card-header {
        padding: 12px 8px;
    }
    
    .card-icon-container {
        width: 45px;
        height: 45px;
    }
    
    .card-icon {
        font-size: 1.4rem;
    }
    
    .card-header h2 {
        font-size: 0.9rem;
        min-height: 45px;
    }
    
    .card-content {
        padding: 12px;
    }
    
    .card-description {
        padding: 8px;
        min-height: 70px;
    }
    
    .card-description p {
        font-size: 0.8rem;
    }
    
    .footer {
        padding: 12px 0;
    }
    
    .footer-info {
        font-size: 0.75rem;
    }
    
    .footer-links {
        gap: 10px;
    }
    
    .footer-link {
        font-size: 0.75rem;
    }
}

@media (min-width: 1200px) {
    .cards-container {
        gap: 25px;
    }
    
    .card-header {
        padding: 20px 15px;
    }
    
    .card-icon-container {
        width: 65px;
        height: 65px;
    }
    
    .card-icon {
        font-size: 2rem;
    }
    
    .card-header h2 {
        font-size: 1.2rem;
        min-height: 65px;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .card-description {
        min-height: 100px;
    }
}