* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 70px;
}

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

/* Header */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

/* Стили для логотипа */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 45px;  /* Фиксируем высоту */
    width: auto;   /* Ширина подстроится автоматически */
    max-width: 150px; /* Максимальная ширина чтобы не растягивалось */
    transition: all 0.3s ease;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2563eb;
}

.logo-img:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Для мобильных */
@media (max-width: 768px) {
    .logo-img {
        height: 35px;
    }
    .logo-text {
        font-size: 1.3rem;
    }
    .logo {
        gap: 8px;
    }
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

.nav a:hover {
    color: #2563eb;
}

.btn {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: #2563eb;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #1d4ed8;
}

.btn-primary {
    background: #2563eb;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Courses */
.courses {
    padding: 80px 0;
    background: #f8fafc;
}

.courses h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.course-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.course-card:hover {
    transform: translateY(-5px);
}

.course-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.course-card h3 {
    margin-bottom: 0.5rem;
    color: #1e40af;
}

.course-age {
    background: #dbeafe;
    color: #1e40af;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.course-card ul {
    list-style: none;
    margin-top: 1rem;
}

.course-card li {
    padding: 0.3rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.course-card li:before {
    content: "✓";
    color: #10b981;
    position: absolute;
    left: 0;
}

/* Teacher */
.teacher {
    padding: 80px 0;
}

.teacher-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: center;
}

.teacher-photo {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    object-position: 60% 15%; /* Горизонталь 50%, Вертикаль 30% - подбирайте значение */
    border: 5px solid #2563eb;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.photo-placeholder {
    display: none;
}

.photo-placeholder {
    width: 250px;
    height: 250px;
    background: #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    margin: 0 auto;
    border: 5px solid #2563eb;
}

.teacher-info h2 {
    margin-bottom: 1.5rem;
    color: #1e40af;
}

.quote {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4b5563;
}

/* Contacts */
.contacts {
    padding: 80px 0;
    background: #f8fafc;
}

.contacts h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Form */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    font-size: 1rem;
}

/* Footer */
.footer {
    background: #1e293b;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

/* Mobile Styles */
@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }
    
    .nav {
        display: none;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .course-grid {
        grid-template-columns: 1fr;
    }
    
    .teacher-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .photo-placeholder {
        width: 200px;
        height: 200px;
    }
}
/* stili dla ccilok*/

.address-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.address-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Для темного футера */
.footer .address-link {
    color: white;
}

.footer .address-link:hover {
    color: #60a5fa;
}
