html, body {
height: 100%;
margin: 0;
}
body {
display: flex;
flex-direction: column;
font-family: Arial, sans-serif;
color: #333;
line-height: 1.6;
}
header {
background: #2c3e50;
color: #fff;
padding: 20px 0;
flex-shrink: 0;
}
.container {
width: 90%;
max-width: 966px;
margin: 0 auto;
padding: 0 15px;
}
.content {
flex: 1;
padding: 5px 0;
}
footer {
background: #f4f4f4;
padding: 20px 0;
text-align: center;
border-top: 1px solid #ddd;
flex-shrink: 0;
}
nav ul {
list-style: none;
padding: 0;
margin: 0;
}
nav ul li {
display: inline-block;
margin-right: 20px;
}
nav a {
color: #fff;
text-decoration: none;
font-weight: bold;
}
nav a:hover {
text-decoration: underline;
}
h1, h2 {
color: #2c3e50;
}
h1 {
text-align: center;
}
.services-list {
list-style-type: disc;
padding-left: 20px;
}
.works-grid {
display: flex;
flex-wrap: wrap;
gap: 20px;
}
.work-item {
border: 1px solid #ddd;
padding: 15px;
width: 300px;
}
.work-item img {
max-width: 100%;
height: auto;
display: block;
margin-bottom: 10px;
}
.btn {
display: inline-block;
padding: 10px 20px;
background: #2c3e50;
color: #fff;
text-decoration: none;
border-radius: 4px;
border: none;
cursor: pointer;
}
table {
width: 100%;
border-collapse: collapse;
margin-bottom: 20px;
}
table th, table td {
border: 1px solid #ddd;
padding: 8px;
text-align: left;
}
form input, form textarea {
width: 100%;
padding: 10px;
margin-bottom: 10px;
box-sizing: border-box;
}

/* Карусель на странице работ */
.carousel {
position: relative;
width: 100%;
height: 200px;
overflow: hidden;
margin-bottom: 10px;
background: #f9f9f9;
}
.carousel-slide {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: none;
text-align: center;
}
.carousel-slide.active {
display: block;
}
.carousel-caption {
position: absolute;
bottom: 0;
left: 0;
right: 0;
background: rgba(0, 0, 0, 0.7);
color: #fff;
padding: 10px 15px;
font-size: 14px;
text-align: center;
opacity: 0;
transition: opacity 0.3s ease;
z-index: 15;
}
.carousel-slide:hover .carousel-caption {
opacity: 1;
}
.carousel-slide img {
max-width: 100%;
max-height: 100%;
object-fit: contain;
display: block;
margin: 0 auto;
}
.carousel-btn {
position: absolute;
top: 50%;
transform: translateY(-50%);
background: rgba(0,0,0,0.5);
color: #fff;
border: none;
padding: 5px 10px;
cursor: pointer;
font-size: 18px;
z-index: 20;
width: 30px;
height: 40px;
}
.carousel-btn.prev { left: 5px; }
.carousel-btn.next { right: 5px; }
.carousel-btn:hover { background: rgba(0,0,0,0.8); }

/* Модальное окно */
.modal {
display: none;
position: fixed;
z-index: 1000;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0,0,0,0.9);
overflow: auto;
}
.modal-container {
position: relative;
margin: auto;
top: 50%;
transform: translateY(-50%);
width: 90%;
max-width: 1200px;
}
.modal-content {
position: relative;
background: #000;
display: flex;
align-items: center;
justify-content: center;
min-height: 100px;
}
.modal-content img {
max-width: 100%;
max-height: 80vh;
width: auto;
height: auto;
display: block;
margin: 0 auto;
object-fit: contain;
visibility: hidden;
}
.modal-content img.loaded {
visibility: visible;
}
.modal-caption {
text-align: center;
color: #fff;
padding: 15px;
font-size: 16px;
background: rgba(0, 0, 0, 0.8);
min-height: 50px;
display: none;
align-items: center;
justify-content: center;
font-weight: bold;
width: 100%;
box-sizing: border-box;
position: relative;
z-index: 1003;
}
.close-modal {
position: absolute;
top: 10px;
right: 25px;
color: #f1f1f1;
font-size: 35px;
font-weight: bold;
cursor: pointer;
z-index: 1004;
}
.close-modal:hover { color: #bbb; }
.modal-carousel-btn {
position: absolute;
top: 50%;
transform: translateY(-50%);
background: rgba(255,255,255,0.3);
color: #fff;
border: none;
padding: 15px 20px;
cursor: pointer;
font-size: 24px;
z-index: 1003;
}
.modal-carousel-btn.prev { left: 20px; }
.modal-carousel-btn.next { right: 20px; }
.modal-carousel-btn:hover { background: rgba(255,255,255,0.5); }
.modal-loader {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 50px;
height: 50px;
border: 5px solid rgba(255,255,255,0.3);
border-top: 5px solid #fff;
border-radius: 50%;
animation: spin 1s linear infinite;
z-index: 1002;
display: none;
}
@keyframes spin {
0% { transform: translate(-50%, -50%) rotate(0deg); }
100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Авторизация и формы */
.login-container {
max-width: 400px;
margin: 50px auto;
padding: 20px;
border: 1px solid #ddd;
border-radius: 4px;
background: #fff;
}
.form-group {
margin-bottom: 15px;
}
.checkbox-label {
font-size: 14px;
cursor: pointer;
}
.checkbox-label input {
width: auto;
margin-right: 5px;
margin-bottom: 0;
}
.alert {
padding: 10px;
margin-bottom: 15px;
border-radius: 4px;
}
.alert.error {
background: #f8d7da;
color: #721c24;
border: 1px solid #f5c6cb;
}
.alert.success {
background: #d4edda;
color: #155724;
border: 1px solid #c3e6cb;
}
.links {
margin-top: 15px;
text-align: center;
}
.links a {
color: #2c3e50;
}
.caption-input-group {
margin-bottom: 5px;
}
.caption-input-group input {
width: 100%;
padding: 8px;
box-sizing: border-box;
border: 1px solid #ddd;
border-radius: 4px;
}
.existing-images {
border: 1px solid #ddd;
padding: 10px;
background: #f9f9f9;
border-radius: 4px;
}
.existing-image-item {
background: #fff;
border: 1px solid #ccc;
padding: 5px;
border-radius: 4px;
}
.existing-image-item img {
display: block;
margin-bottom: 5px;
}
.existing-image-item input[type="text"] {
width: 100px !important;
margin: 5px 0 !important;
padding: 4px;
font-size: 12px;
}
.existing-image-item label {
font-size: 12px;
cursor: pointer;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
.carousel-caption {
font-size: 12px;
padding: 8px 10px;
opacity: 1;
}
.carousel {
height: 250px;
}
.modal-caption {
font-size: 14px;
padding: 10px;
}
.modal-content img {
max-height: 70vh;
}
}
