* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Comfortaa', cursive; background-color: #fff5f8; color: #4a4a4a; line-height: 1.6; display: flex; justify-content: center; padding: 40px 20px; }
.container { max-width: 900px; width: 100%; text-align: center; }
header { margin-bottom: 50px; }
h1 { font-size: 2.5rem; color: #ff85a2; margin-bottom: 10px; }
.subtitle { font-size: 1.1rem; color: #888; }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 25px; margin-bottom: 50px; }
.project-card { background: #fff; border-radius: 20px; padding: 30px; text-decoration: none; color: inherit; transition: transform 0.3s ease, box-shadow 0.3s ease; box-shadow: 0 10px 20px rgba(255, 133, 162, 0.1); border: 1px solid #ffeef2; display: flex; flex-direction: column; align-items: center; }
.project-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(255, 133, 162, 0.2); }
.task-number { display: block; font-size: 0.9rem; color: #ff85a2; font-weight: bold; margin-bottom: 10px; }
.project-card h3 { font-size: 1.4rem; margin-bottom: 10px; }
.project-card p { font-size: 0.9rem; color: #aaa; }
footer { font-size: 0.8rem; color: #bbb; margin-top: 30px; }
@media (max-width: 600px) { h1 { font-size: 1.8rem; } .projects-grid { grid-template-columns: 1fr; } }

/* --- Стили для блоков Задания №1 (добавить в конец файла) --- */

/* Контейнер для центрирования фото */
.profile-block {
    display: flex;
    justify-content: center;
    margin: 25px 0;
}

/* Настройки фото (маленькое и аккуратное) */
.photo-wrapper {
    width: 120px;
    border: 3px solid #ff85a2;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(255, 133, 162, 0.2);
}

.photo-wrapper img {
    width: 100%;
    display: block;
}

/* Синяя плашка WEB - Technologies */
.web-bar {
    background-color: #c5cae9; 
    color: #283593;           
    padding: 15px;
    font-size: 22px;
    font-weight: bold;
    border-radius: 15px 15px 0 0; /* Закругляем только верх */
    margin-top: 30px;
}

/* Контейнер для нижних кнопок */
.tech-row {
    display: flex; 
    margin-bottom: 40px;
}

.box {
    flex: 1;         
    padding: 20px;
    font-size: 20px;
    font-weight: bold;
}

/* Желтый блок */
.front {
    background-color: #ffc107; 
    color: #2196f3;
    border-bottom-left-radius: 15px;
}

/* Бирюзовый блок */
.back {
    background-color: #26a69a; 
    color: white;
    border-bottom-right-radius: 15px;
}

/* Кнопка "На главную" внизу */
.btn-home {
    display: inline-block;
    background: #ff85a2;
    color: white;
    text-decoration: none;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-home:hover {
    background: #ff5c8d;
}

/* Сетка для кнопок */
.buttons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

/* Общий стиль кнопок */
.btn-pink, .btn-blue, .btn-green {
    font-family: 'Comfortaa';
    border: none;
    padding: 15px;
    border-radius: 15px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-pink { background-color: #ff85a2; }
.btn-blue { background-color: #c5cae9; color: #283593; }
.btn-green { background-color: #26a69a; }

button:hover { transform: translateY(-3px); opacity: 0.9; }

/* Окно вывода результата */
.result-display {
    background: #fff9fb;
    border: 2px dashed #f8bbd0;
    padding: 20px;
    border-radius: 20px;
    font-size: 1.2rem;
    color: #ad1457;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}
