* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;

    background: linear-gradient(rgba(255,255,255,0.55), rgba(255,255,255,0.55)),
                url("../images/tokyo.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;

    color: #222222;
    line-height: 1.6;
}

/* Header */

header {
    background-color: #fff7f8;
    border-bottom: 3px solid #f4b6c2;
    text-align: center;
    padding: 30px 20px 20px;
}

header h1 {
    margin: 0;
    color: #7d1f2d;
    font-size: 38px;
}

header p {
    margin: 8px 0 20px;
    color: #555555;
}

/* Navigation */

nav {
    margin-top: 15px;
}

nav a {
    display: inline-block;
    color: #7d1f2d;
    text-decoration: none;
    font-weight: bold;
    margin: 6px;
    padding: 9px 14px;
    border-radius: 20px;
}

nav a:hover {
    background-color: #f4b6c2;
    color: #ffffff;
}

/* Main layout */

main {
    max-width: 1200px;
    margin: auto;
    padding: 50px 35px;
}

section {
    margin-bottom: 30px;
    background-color: rgba(255,255,255,0.9);
    padding: 100px;
    border-radius: 12px;
}

h2 {
    color: #7d1f2d;
    font-size: 30px;
    margin-bottom: 10px;
}

h3 {
    color: #8f2f3f;
}

/* Intro */

.intro {
    background-color: #fff7f8;
    padding: 30px;
    border-radius: 14px;
    border: 1px solid #f4b6c2;
}

.button {
    display: inline-block;
    background-color: #7d1f2d;
    color: white;
    text-decoration: none;
    padding: 11px 18px;
    border-radius: 20px;
    margin-top: 10px;
}

.button:hover {
    background-color: #a94052;
}

/* Cards */

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 20px;
}

.card {
    background-color: #ffffff;
    border: 1px solid #f4b6c2;
    border-radius: 14px;
    padding: 40px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
}

.card:hover {
    background-color: #fff7f8;
}

/* Tips */

.tips article {
    background-color: #ffffff;
    border-left: 5px solid #f4b6c2;
    padding: 18px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

/* Text gallery */

.gallery-text {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.gallery-text article {
    background-color: #fff7f8;
    border: 1px solid #f4b6c2;
    border-radius: 14px;
    padding: 22px;
}

/* Contact form */

.contact-box {
    max-width: 700px;
    margin: auto;
    background-color: #fff7f8;
    border: 1px solid #f4b6c2;
    border-radius: 14px;
    padding: 30px;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    margin-top: 14px;
    font-weight: bold;
    color: #7d1f2d;
}

input,
select,
textarea {
    margin-top: 6px;
    padding: 11px;
    border: 1px solid #cccccc;
    border-radius: 8px;
    font-size: 16px;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #f4b6c2;
}

button {
    margin-top: 20px;
    background-color: #7d1f2d;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

button:hover {
    background-color: #a94052;
}

/* Footer */

footer {
    text-align: center;
    background-color: #7d1f2d;
    color: white;
    padding: 16px;
    margin-top: 30px;
}

/* Tablet */

@media (max-width: 900px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Phone */

@media (max-width: 600px) {
    header h1 {
        font-size: 30px;
    }

    nav a {
        display: block;
        margin: 8px auto;
        max-width: 220px;
    }

    .cards,
    .gallery-text {
        grid-template-columns: 1fr;
    }

    main {
        padding: 25px 15px;
    }
}
.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;

    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    border-bottom-left-radius: 20px;

    display: block;
}
