body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f4f7fb;
    color: #333;
}
html {
    scroll-behavior: smooth;
}
.main-header {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.logo {
    font-size: 26px;
    font-weight: bold;
    color: #0c3b82;
}

.logo span {
    color: #2b7cff;
}

section {
    padding: 80px 20px;
    text-align: center;
    border: 1px solid #d0d8e6;
    border-radius: 12px;
    margin: 40px auto;
    max-width: 1200px;
    background: white;
}

.badge {
    background: #eef4ff;
    color: #2b7cff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.hero {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
    border: none;
    background: transparent;
}

.hero-left {
    flex: 1.2;
}

.hero-right {
    flex: 1;
    text-align: center;
}

.hero img {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.hero h1 {
    font-size: 48px;
    color: #0c3b82;
    line-height: 1.2;
    margin: 20px 0;
}

.hero p {
    font-size: 18px;
    color: #555;
    margin-bottom: 30px;
}

.hero-list {
    list-style: none;
    padding: 0;
    margin-top: 25px;
}

.hero-list li {
    margin: 12px 0;
    color: #2b7cff;
    font-weight: 500;
}

/* --- Специфічний стиль для компактної секції --- */
.how-it-works {
    padding: 50px 20px;
}

.card-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.card {
    border: 1px solid #e0e6ed;
    border-radius: 15px;
    padding: 30px 20px; /* Трохи менші відступи */
    width: 220px;       /* Трохи вужчі */
    min-height: 300px;  /* Трохи нижчі */
    background: white;
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: 0.3s;
}

.step-num {
    background: #eef4ff;
    width: 45px;        /* Трохи менше коло */
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 15px;
    color: #2b7cff;
    font-size: 18px;
    font-weight: bold;
}

.card h3 {
    color: #0c3b82;
    font-size: 20px;    /* Менший заголовок */
    margin: 10px 0;
}

.card p {
    flex-grow: 1;
    color: #666;
    line-height: 1.5;
    font-size: 14px;    /* Менший текст */
}

.card:hover {
    transform: translateY(-10px);
    border-color: #2b7cff;
}

/* --- Tutors Section --- */
.tutors-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.tutor-card {
    width: 280px;
    padding: 20px;
}

.tutor-img {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #eef4ff;
}

.tutor-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tutor-origin {
    display: inline-block;
    background: #eef4ff;
    color: #2b7cff;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 10px;
}

.tutor-card h3 {
    color: #0c3b82;
    margin: 10px 0;
}

.tutor-card p {
    font-size: 15px;
    color: #666;
    line-height: 1.5;
}

/* --- Pricing --- */
.pricing {
    background: #f9fbff;
}

.price-card {
    border: 1px solid #e0e6ed;
    border-radius: 15px;
    padding: 35px;
    width: 260px;
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
}
.price-card:hover {
    transform: translateY(-10px);
    border-color: #2b7cff;
}
.price {
    font-size: 36px;
    font-weight: bold;
    color: #0c3b82;
    margin: 20px 0;
}

.price span {
    font-size: 16px;
    color: #888;
}

.price-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-bottom: 30px;
}

.price-card li {
    margin: 12px 0;
    font-size: 15px;
}

.price-card.popular {
    border: 2px solid #2b7cff;
    position: relative;
    transform: scale(1.05);
}
.price-card.popular:hover{
    transform: translateY(-10px);
    border-color: #0f4190;
}
.popular-label {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: #2b7cff;
    color: white;
    padding: 4px 18px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

button {
    padding: 14px 28px;
    border: 2px solid #2b7cff;
    border-radius: 8px;
    background: white;
    color: #2b7cff;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

button:hover {
    background: #2b7cff;
    color: white;
}

.form-section {
    background: #0c3b82;
    color: white;
    border: none;
}

.form-section h2 {
    color: white;
}

.form-card {
    max-width: 400px; 
    margin: 30px auto 0;
    padding: 40px;
    border-radius: 15px;
    background: white;
    color: #333;
}

form input, form select {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 20px;
    padding: 14px;
    border: 1px solid #d0d8e6;
    border-radius: 8px;
    font-size: 16px;
}

form button {
    background: #2b7cff;
    color: white;
    font-size: 18px;
    width: 100%;
}
.contacts {
    padding: 40px 20px;
    max-width: 900px;  
    margin: 20px auto 60px; 
}

.contact-container {
    display: flex;
    justify-content: space-around; 
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left; 
    padding: 10px;
}

.contact-icon {
    font-size: 24px;
    background: #f4f7fb;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #2b7cff;
}

.contact-item h4 {
    margin: 0;
    font-size: 16px;
    color: #0c3b82;
}

.contact-item p {
    margin: 2px 0 0;
    font-size: 14px;
    color: #666;
}
@media (max-width: 600px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }
    .price-card.popular {
        transform: scale(1);
    }
    .contact-container {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 20%; 
    }
}