@font-face {
    font-family: 'Monaco';
    src: url('fonts/Monaco-Regular.woff2') format('woff2'),
        url('fonts/Monaco-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


body {
    font-family: 'Monaco', sans-serif;
    background: radial-gradient(circle, #2c003e 30%, #5e1675 70%, #1a001f 100%);
    color: #e0c3fc;
    text-align: center;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 800px;
    margin: 50px auto;
    padding: 50px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    text-align: center;
}


.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;   /* или contain — см. ниже */
    border-radius: 20px;
    display: block;
}

.video-container {
    max-width: 900px;
    margin: 50px auto;
    padding: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    text-align: center;
}

.photo-grid {
    width: 900px;
    margin: 50px auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* ровно 2 колонки */
    gap: 40px;
}

.photo-grid img {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    object-fit: cover;
    cursor: pointer; /* Указатель при наведении на изображения */
}

.price {
    border: 1px solid gold;
}

.container__image {
    width: 70%;
    height: auto;
    border-radius: 20px;
}

.image-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex; /* Устанавливаем flex по умолчанию */
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none; /* Отключаем клики, когда оверлей скрыт */
    transition: opacity 0.3s ease; /* Анимация появления */
}

.image-overlay.show {
    opacity: 1; /* Плавное появление */
    pointer-events: auto; /* Включаем клики, когда оверлей видим */
}

.image-overlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    transform: scale(0.8); /* Начальный размер */
    transition: transform 0.3s ease; /* Анимация увеличения */
    cursor: pointer; /* Указатель при наведении на увеличенное изображение */
}

.image-overlay.show img {
    transform: scale(1); /* Конечный размер */
}


.close-button:hover {
    background: #ff2e44;
}

h1, h2 {
    color: #d4a5ff;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.5);
    text-align: center;
}
p, ul {
    font-size: 1.2em;
    line-height: 1.6;
    text-align: justify;
}

li {
    margin-left: 3%;
    text-align: left;
    marker: none;
}
.button {
    display: inline-block;
    padding: 15px 30px;
    width: 50%;
    margin: 20px auto;
    background: linear-gradient(45deg, #c38bdb, #e9d6f0);
    color: #262323;
    text-decoration: none;
    font-size: 1.2em;
    border-radius: 8px;
    transition: background 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    border: none;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2); /* Добавлена небольшая тень */
}

.button:hover {
    background: linear-gradient(45deg, #e9d6f0, #c38bdb);
    transform: scale(1.05);
    box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.3); /* Увеличенная тень при наведении */
}

.form-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
}
.form-container {
    background: rgba(255, 255, 255);
    padding: 30px;
    padding-top: 50px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    position: relative;
    width: 400px;
    text-align: center;
}
.close-button {
    width: 30px;
    height: 30px;
    top: 15px;
    right: 25px;
    padding: 0;
    background: #ff4b5c;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    position: absolute;
}
.close-button:hover {
    background: #ff2e44;
}

.close-button-crossing {
	position: relative;
	width: 20px;
	height: 20px;
	background: transparent;
	border: none;
	cursor: pointer;
	top: 3px;
}

.center {
    text-align: center;
}

input, button {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box; /* Учитываем padding и border в ширине */
}

input {
	font-family: 'Monaco';
	background: rgba(255, 255, 255, 0.8);
	color: #5e1675;
	border: #e0c3fc 2px solid;
	width: 100%;
}

button {
    font-family: 'Monaco';
    background: linear-gradient(45deg, #9b59b6, #732d91);
    font-weight: 500;
    color: white;
    cursor: pointer;
}
button:hover {
    background: linear-gradient(45deg, #732d91, #9b59b6);
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
        padding: 5px;
    }
    
    .container {
        max-width: 90%;
        padding: 30px;
    }

    .photo-grid {
        max-width: 100%;
        gap: 15px;
    }

    .container:first-child {
        margin: 20px auto;
    }

    .container__image {
        width: 100%;
    }

    h1, h2 {
        font-size: 1.5em;
    }

    p, ul {
        font-size: 1em;
    }

    ul {
        padding-left: 10px;
    }

    .button {
        width: 80%;
        font-size: 1em;
        padding: 12px 20px;
    }

    .form-container {
        width: 90%;
        padding: 20px;
        padding-top: 45px;
    }
}
