/* Базові стилі */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: #f4f7f9;
    color: #222;
    text-align: center;
    line-height: 1.6;
}

header {
    background: url('images/header-bg.jpeg') no-repeat 50% 50%;
    background-size: cover;
    color: white;
    padding: 100px 20px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
    color: #ffffff;
    text-shadow:
        2px 2px 2px rgba(0, 0, 0, 0.7),
        -2px 2px 2px rgba(0, 0, 0, 0.7),
        2px -2px 2px rgba(0, 0, 0, 0.7),
        -2px -2px 2px rgba(0, 0, 0, 0.7),
        0px 0px 6px rgba(0, 0, 0, 0.6);
    /* центральна тінь для м'якості */
}

header p {
    margin-top: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #f9f9f9;
    text-shadow:
        1px 1px 1px rgba(0, 0, 0, 0.6),
        -1px 1px 1px rgba(0, 0, 0, 0.6),
        1px -1px 1px rgba(0, 0, 0, 0.6),
        -1px -1px 1px rgba(0, 0, 0, 0.6);
}

.hero {
    padding: 40px 20px;
}

.hero img {
    max-width: 90%;
    border-radius: 25px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.hero img:hover {
    transform: scale(1.05);
}

button {
    margin-top: 20px;
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    background: linear-gradient(135deg, #66BB6A, #43A047);
    color: white;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

button:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    background: linear-gradient(135deg, #43A047, #388E3C);
}

/* Меню */
ul.menu {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* три блоки по горизонталі */
    grid-template-rows: repeat(2, auto);
    /* два ряди */
    gap: 20px;
    justify-items: center;
}

ul.menu li {
    background: white;
    border-radius: 25px;
    padding: 15px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-align: center;
}

ul.menu li img {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    object-fit: cover;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

ul.menu li:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

ul.menu li:hover img {
    transform: scale(1.1);
}

ul.menu li a {
    text-decoration: none;
    color: #222;
    font-size: 18px;
    font-weight: 600;
    display: block;
}


footer a {
    text-decoration: none;
    /* прибрати підкреслення */
    color: inherit;
    /* успадкувати колір тексту футера */
    transition: color 0.3s ease;
}

footer a:hover span {
    text-decoration: underline;
    /* підкреслення при наведенні на Start, якщо треба */
}

@media (max-width: 420px) {
    ul.menu {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 0 10px;
        /* відступи від країв екрану */
    }

    ul.menu li {
        width: 90%;
        /* або конкретна ширина, наприклад 200px */
        max-width: 250px;
        padding: 10px;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        background: #fff;
        /* якщо потрібен фон блоку */
        border-radius: 8px;
        /* закруглені кути */
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
        /* легка тінь */
    }

    ul.menu li img {
        width: 60px;
        height: 60px;
        margin-bottom: 8px;
    }

    ul.menu li a {
        font-size: 14px;
        word-wrap: break-word;
        line-height: 1.3;
    }

    button {
        width: 100%;
    }

    /* Стилі для хедера */
    header {
        padding: 20px 10px;
        background-size: cover;
        text-align: center;
    }

    header h1 {
        font-size: 1.6rem;
        text-shadow:
            1px 1px 2px rgba(0, 0, 0, 0.7),
            -1px 1px 2px rgba(0, 0, 0, 0.7),
            1px -1px 2px rgba(0, 0, 0, 0.7),
            -1px -1px 2px rgba(0, 0, 0, 0.7),
            0 0 4px rgba(0, 0, 0, 0.6);
    }

    header p {
        font-size: 1rem;
        text-shadow:
            1px 1px 2px rgba(0, 0, 0, 0.6),
            -1px 1px 2px rgba(0, 0, 0, 0.6),
            1px -1px 2px rgba(0, 0, 0, 0.6),
            -1px -1px 2px rgba(0, 0, 0, 0.6);
    }
}