html, body {
    max-width: 100vw;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}
img, .painting {
    max-width: 100%;
    box-sizing: border-box;
    display: block;
}

body {
    font-family: 'Assistant', sans-serif;
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #3e2f1c;
    padding: 0 0 40px;
    direction: rtl;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}
body.modal-open {
    overflow: hidden;
}
h1 {
    margin: 30px 15px 0px;
    font-size: 3rem;
    color: #5d1761;
    letter-spacing: 2px;
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}
h2 {
    margin: 0px 15px 20px;
    font-size: 2rem;
    color: #0c2c37;
    letter-spacing: 2px;
    text-align: center;
    font-family: 'Assistant', sans-serif;
}
p {
    margin: 10px 5px;
}
.intro {
    max-width: 900px;
    margin: 0 15px 25px;
    line-height: 1.5;
    text-align: center;
}

.intro p:first-of-type {
    background: linear-gradient(135deg, #fceabb, #f8b500);
    color: #5a3710;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.6rem;
    padding: 20px 32px;
    border-radius: 18px;
    box-shadow: 4px 4px 12px rgba(0,0,0,0.15);
    margin-bottom: 22px;
    user-select: text;
    letter-spacing: 0.06em;
    font-style: italic;
    line-height: 1.4;
}
@media (max-width: 520px) {
    .intro p:first-of-type {
    font-size: 1.2rem;
    }
}

.intro p:not(:first-of-type) {
    font-family: 'Assistant', sans-serif;
    color: #4b3b01;
    font-weight: 600;
    font-size: 1.3rem;
    line-height: 1.6;
    text-shadow: 0 0 5px rgba(0,0,0,0.08);
    user-select: text;
    margin-top: 15px;
}

.intro p:nth-of-type(3) strong {
    font-family: 'Playfair Display', serif;
    color: #7a4700;
    font-weight: 900;
    font-size: 1.35rem;
    letter-spacing: 0.07em;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.12);
    font-style: normal;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1300px;
    width: 100%;
    padding: 0 15px;
}
.painting {
    background: #fff8f1;
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    width: 470px;
    max-width: 90%;
    transition: transform 0.35s ease;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    outline: none;
}
.painting:focus {
    box-shadow: 0 0 0 4px #9d6f2f;
}
@media (max-width: 520px) {
    .painting {
    width: 90%;
    max-width: 380px;
    }
    .contact-form {
    padding-left: 5px !important;
    padding-right: 5px !important;
    max-width: calc(100% - 10px);
    }
}
.painting:hover {
    transform: scale(1.08);
    box-shadow: 0 14px 32px rgba(0,0,0,0.25);
}
.painting img {
    border-bottom: 3px solid #613d17;
    transition: filter 0.5s ease;
}
.painting:hover img {
    filter: brightness(82%);
}
.info {
    padding: 22px 20px;
}
.title {
    font-weight: 700;
    color: #613d17;
    font-size: 1.45rem;
    margin-bottom: 8px;
}
.description {
    font-size: 1rem;
    color: #7d6637;
    margin-bottom: 16px;
    min-height: 26px;
}
.price {
    font-weight: 700;
    color: #b54343;
    font-size: 1.25rem;
    margin-bottom: 14px;
}
.btn-buy {
    display: none;
}
.contact-form-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.65);
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 1000;
    overflow: auto;
}
.contact-form-container.active {
    visibility: visible;
    opacity: 1;
}
.contact-form {
    background: #fff;
    padding: 28px 40px 40px;
    border-radius: 14px;
    box-shadow: 0 10px 26px rgba(0,0,0,0.3);
    max-width: 420px;
    width: 90%;
    direction: rtl;
    font-size: 1.1rem;
    position: relative;
}
.contact-form h2 {
    margin-top: 0;
    margin-bottom: 24px;
    color: #613d17;
    text-align: center;
    user-select: none;
}
.contact-form label {
    display: block;
    margin-bottom: 8px;
    color: #613d17;
    font-weight: 700;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select {
    width: 100%;
    padding: 12px;
    margin-bottom: 18px;
    border: 1.7px solid #d3b87b;
    border-radius: 8px;
    font-size: 1.05rem;
    box-sizing: border-box;
    font-weight: 600;
    color: #514326;
}
.contact-form input[type="text"]::placeholder,
.contact-form input[type="email"]::placeholder,
.contact-form input[type="tel"]::placeholder {
    color: #ad9c70;
    font-style: italic;
}
.contact-form button {
    background-color: #613d17;
    color: #fff;
    border: none;
    padding: 14px;
    font-size: 1.2rem;
    border-radius: 10px;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.35s ease;
    margin-bottom: 14px;
    font-weight: 700;
}
.contact-form button:hover {
    background-color: #9d6f2f;
}
button.btn-call {
    background: transparent;
    color: #0b3d2d;
    letter-spacing: 1.5px;
    font-size: 1.2rem;
    border: 2.5px solid #0b3d2d;
    border-radius: 10px;
    padding: 12px 0;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.35s ease, color 0.35s ease;
}
button.btn-call:hover {
    background-color: #0b3d2d;
    color: #fff;
}
button.close-btn {
    background: #fff;
    border-radius: 50%;
    border: none;
    font-size: 24px;
    color: #b54343;
    position: absolute;
    top: 12px;
    left: 12px;
    cursor: pointer;
    user-select: none;
    width: 36px;
    height: 36px;
    line-height: 18px;
    text-align: center;
    padding: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    transition: background-color 0.2s ease;
}
button.close-btn:hover {
    background: #f3d4d4;
}
.error-message {
    color: #b54343;
    font-weight: 700;
    margin-bottom: 14px;
    text-align: center;
}
.message-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff8f1;
    border-radius: 14px;
    max-width: 420px;
    width: 90%;
    padding: 30px 40px;
    box-shadow: 0 10px 26px rgba(0,0,0,0.3);
    text-align: center;
    font-size: 1.25rem;
    color: #613d17;
    display: none;
    z-index: 1100;
    user-select: none;
}
.message-container.active {
    display: block;
}
#footer {
    font-size: 10px;
    color: #aaa;
    border-top: 1px solid #ccc;
    width: 90%;
    text-align: center;
    margin: 40px auto;
    padding: 15px;
}
#footer a {
    color:#2f454d
}