html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #fff8fa;
    color: #222;
}

/* HERO */

.hero {
    min-height: 90vh;
    background: #faf7f6;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 25px 80px;

    background: #f8e9ee;

    border-bottom: 1px solid #f0dbe2;

    position: sticky;
    top: 0;

    z-index: 1000;
}

.logo {
    font-size: 30px;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #222;
    transition: .2s;
}

.nav-links a:hover {
    opacity: .7;
}

.hero-container {
    max-width: 1400px;
    margin: auto;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 50px 80px;
}

.hero-left {
    flex: 1;
}

.hero-left h1 {
    font-size: 72px;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero-left p {
    font-size: 20px;
    max-width: 500px;
    margin-bottom: 35px;
}

.hero-button {
    display: inline-block;

    padding: 16px 32px;

    background: #111;
    color: white;

    text-decoration: none;

    border-radius: 12px;

    transition:
        transform .22s ease,
        filter .22s ease,
        box-shadow .22s ease;
}

.hero-button:hover {
    transform: translateY(-2px);
}

.hero-right {
    flex: 1;

    display: flex;
    justify-content: center;
}

.hero-right img {

    width: 500px;
    height: 600px;

    object-fit: cover;

    border-radius: 30px;

    border: 8px solid white;

    transform: rotate(-2deg);

    box-shadow:
        0 20px 50px rgba(0,0,0,.15);
}

/* FEATURES */

.features {
    max-width: 1200px;

    margin: auto;

    padding: 40px 60px;

    display: grid;

    grid-template-columns: repeat(3,1fr);

    gap: 25px;
}

.feature {
    background: white;

    padding: 30px;

    border-radius: 20px;

    text-align: center;

    box-shadow:
        0 10px 25px rgba(0,0,0,.05);
}

.feature-icon {
    font-size: 42px;
    margin-bottom: 15px;
}

.feature h3 {
    margin-bottom: 10px;
}

/* CATALOG */

.catalog-section {
    padding: 100px 60px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 42px;
    margin-bottom: 10px;
}

.section-title p {
    color: #666;
}

.catalog {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(280px, 1fr));

    gap: 30px;
}

.card {
    background: white;

    border-radius: 20px;

    overflow: hidden;

    box-shadow:
        0 10px 30px rgba(0,0,0,.08);

    transition:
        opacity .55s ease,
        transform .55s ease,
        box-shadow .25s ease;
}

.card:hover {
    transform: translateY(-7px);
    box-shadow:
        0 18px 42px rgba(0,0,0,.12);
}

.card img {
    width: 100%;
    height: 280px;

    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    margin-bottom: 10px;
}

.price {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
}

.details-btn {
    width: 100%;

    background: #111;
    color: white;

    border: none;

    padding: 12px;

    border-radius: 10px;

    cursor: pointer;

    font-size: 15px;

    transition:
        transform .22s ease,
        filter .22s ease,
        box-shadow .22s ease;
}

.details-btn:hover {
    opacity: .9;
}

/* MODAL */

.modal {

    display: flex;

    position: fixed;

    inset: 0;

    background:
        rgba(0,0,0,.6);

    justify-content: center;

    align-items: center;

    z-index: 9999;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity .24s ease,
        visibility .24s ease;
}

.modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-content {

    width: 700px;
    max-width: 95%;

    background: white;

    padding: 30px;

    border-radius: 25px;

    position: relative;

    max-height: 90vh;

    overflow-y: auto;

    opacity: 0;
    transform: translateY(14px) scale(.98);

    transition:
        opacity .24s ease,
        transform .24s ease;
}

.modal.is-open .modal-content {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.close {

    position: absolute;

    right: 20px;

    top: 10px;

    font-size: 34px;

    cursor: pointer;
}

.modal-image {

    width: 100%;
    height: 350px;

    object-fit: cover;

    border-radius: 15px;

    margin-bottom: 20px;
}

.order-btn {

    width: 100%;

    margin-top: 20px;

    background: #d97c96;

    color: white;

    border: none;

    padding: 14px;

    border-radius: 12px;

    cursor: pointer;

    transition:
        transform .22s ease,
        filter .22s ease,
        box-shadow .22s ease;
}

.order-btn:disabled {
    opacity: .65;
    cursor: not-allowed;
    transform: none;
}

/* FORM */

form {

    display: flex;

    flex-direction: column;

    gap: 15px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-error {
    min-height: 18px;
    margin-top: -8px;
    color: #b42318;
    font-size: 14px;
}

input,
textarea,
select {

    width: 100%;

    padding: 14px;

    border-radius: 10px;

    border: 1px solid #ddd;

    font-size: 16px;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* CONTACTS */

.contacts {
    background: white;

    text-align: center;

    padding: 100px 20px;
}

.contacts h2 {
    margin-bottom: 20px;
}

.contacts p {
    margin-bottom: 10px;
}

.contacts a {
    color: inherit;
}


/* MOBILE */

@media (max-width: 900px) {

    .hero {
        min-height: auto;
    }

    .navbar {
        padding: 20px;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }

    .hero-left h1 {
        font-size: 48px;
    }

    .hero-left p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-right img {
        width: 100%;
        max-width: 450px;
        height: 400px;
        margin-top: 30px;
        transform: none;
    }

    .features {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .catalog-section {
        padding: 60px 20px;
    }
}

@media (max-width: 600px) {

    .navbar {
        gap: 14px;
        padding: 14px 16px;
    }

    .logo {
        font-size: 22px;
    }

    .nav-links {
        gap: 14px;
        font-size: 14px;
    }

    .hero-container {
        padding: 30px 16px 36px;
    }

    .hero-left h1 {
        font-size: 38px;
        margin-bottom: 18px;
    }

    .hero-left p {
        font-size: 17px;
        margin-bottom: 26px;
    }

    .hero-button {
        width: 100%;
        max-width: 300px;
        padding: 15px 22px;
        text-align: center;
    }

    .hero-right img {
        height: 320px;
        border-width: 6px;
        border-radius: 22px;
    }

    .features {
        gap: 16px;
    }

    .feature {
        padding: 22px;
        border-radius: 16px;
    }

    .section-title {
        margin-bottom: 32px;
    }

    .section-title h2 {
        font-size: 32px;
    }

    .catalog-section {
        padding: 52px 16px;
    }

    .catalog {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .card {
        border-radius: 16px;
    }

    .card:hover {
        transform: none;
    }

    .card.reveal.is-visible:hover {
        transform: translateY(0);
    }

    .card img {
        height: 240px;
    }

    .details-btn,
    .order-btn {
        min-height: 48px;
    }

    .modal {
        align-items: flex-start;
        padding: 12px;
    }

    .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: calc(100dvh - 24px);
        padding: 24px 16px 18px;
        border-radius: 18px;
    }

    .close {
        right: 14px;
        top: 6px;
        font-size: 32px;
    }

    .modal-image {
        height: 220px;
        border-radius: 12px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contacts {
        padding: 70px 16px;
    }
}

@media (max-width: 360px) {

    .navbar {
        padding: 12px;
    }

    .logo {
        font-size: 20px;
    }

    .nav-links {
        gap: 10px;
        font-size: 13px;
    }

    .hero-left h1 {
        font-size: 34px;
    }

    .hero-right img {
        height: 280px;
    }

    .card img {
        height: 220px;
    }
}
.hero-button:hover,
.details-btn:hover,
.order-btn:not(:disabled):hover {

    transform: translateY(-2px);

    filter: brightness(0.95);

    box-shadow:
        0 10px 22px rgba(0,0,0,.12);
}
