/* ============ Загальне ============ */
* {
box-sizing: border-box;
font-family: sans-serif;
}
html {
overflow-y: scroll;
}

/* ============ Каркас сторінки ============ */
.main-container {
display: flex;
flex-direction: column;
width: 1280px;
height: auto;
margin: auto;
}
main {
display: flex;
flex-direction: row;
width: 100%;
height: auto;
margin: auto;
padding: 0px;
}
.main-section {
display: flex;
flex-direction: column;
width: calc(100% - 300px - 20px); /* 300px - ширина меню (nav) */
margin-left: 20px;
}
h1 {
margin-top: 20px;
padding: 15px;
font-size: 22px;
font-weight: bold;
color: var(--color-blue);
line-height: 1.33;
}

/* ============ Головний блок (sect-1) ============ */
.sect-1 {
padding-top: 10px;
display: flex;
flex-direction: row;
width: 100%;
}

/* --- Фото зліва --- */
.sect-1-A {
display: flex;
align-items: flex-start;
justify-content: center;
min-width: 40%;
}
.sect-1-A > img {
width: 100%;
border-radius: 8px;
}

/* --- Список матеріалів справа --- */
.sect-1-B {
margin-left: 20px;
width: 100%;
border: 1px solid lightgrey;
border-radius: 8px;
}
.sect-1-B > div {
margin-left: 10px;
height: 100% !important;
padding: 10px;
padding-left: 30px;
font-size: 17px;
line-height: 1.75;
}
.sect-1-B-p {
margin-top: 5px;
padding-left: 10px;
color: var(--color-blue);
font-weight: 600;
font-size: 20px;
}
.sect-1-B > div > ul {
margin-top: 10px;
padding-left: 20px;
}
.ul-materials {
list-style: none;
}
.ul-materials li::before {
content: "-";
margin-right: 10px;
}

/* ============ Інформація для замовлення і основний текст ============ */
.info-zakaz,
.info-laser {
margin-top: 30px;
padding: 10px;
font-size: 17px;
line-height: 1.5;
}
.info-zakaz {
border: 1px solid lightgrey;
border-radius: 8px;
}
.info-laser {
word-break: break-word;
text-align: justify;
}
.info-laser h3 {
color: var(--color-blue);
font-weight: bold;
margin: 24px 0 8px 0;
}
.info-laser p {
margin: 0;
line-height: 1.5;
}

/* ============ Галерея робіт (sect-3) ============ */
.sect-3 {
margin-top: 20px;
display: flex;
flex-wrap: wrap;
align-items: stretch;
width: 100%;
padding: 10px;
}
.column {
width: 25%;
padding: 5px;
}
.prod-box {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100%;
}
.box-1 {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
}
.prod-img {
width: 100%;
display: flex;
align-items: center;
justify-content: center;
border: 1px solid lightgrey;
border-radius: 8px;
}
.prod-img > img {
width: 100%;
height: auto;
border-radius: 8px;
}

/* ============ Перелік пошукових фраз ============ */
.laser-wrapper {
display: flex;
flex-direction: column;
margin-top: 30px;
}
.laser_list {
margin-top: 15px;
margin-bottom: 5px;
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: flex-start;
padding-left: 10px;
}
.laser-item {
height: 18px;
padding: 14px 10px;
border: 1px solid grey;
border-radius: 15px;
margin-right: 5px;
margin-bottom: 10px;
font-size: 14px;
color: black;
list-style-type: none;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}

/* ============ Адаптивність (від більшого до меншого) ============ */

/* До 1270px: контейнер по відсотку */
@media screen and (max-width: 1270px) {
.main-container {
width: 90%;
}
}

/* До 1150px: ширше фото */
@media screen and (max-width: 1150px) {
.sect-1-A {
min-width: 60%;
}
}

/* До 1018px: головний блок в колонку */
@media screen and (max-width: 1018px) {
.main-container {
width: calc(100% - 10px);
}
.sect-1 {
margin-top: 20px;
flex-direction: column;
}
.sect-1-A {
min-width: 100%;
margin-bottom: 30px;
}
.sect-1-B {
margin-left: 0;
padding-left: 10px;
padding-right: 10px;
}
.sect-1-B > div {
padding-left: 0;
font-size: 18px;
}
}

/* До 800px: мобільна версія, меню ховається */
@media screen and (max-width: 800px) {
.main-container {
width: 100%;
}
.main-section {
width: 100%;
padding: 0;
margin: 0;
}
nav {
display: none;
}
h1 {
padding: 5px 0 15px;
text-align: center;
}
.sect-1 {
align-items: center;
justify-content: center;
}
.sect-1-A {
padding-left: 10px;
padding-right: 10px;
}
.sect-1-A > img {
margin-top: 5px;
}
.sect-1-B {
width: calc(100% - 20px);
}
.info-zakaz,
.info-laser {
text-align: justify; /* розтягування тексту по ширині */
padding-left: 10px;
padding-right: 10px;
margin-left: 10px;
margin-right: 10px;
font-size: 18px;
}
.column {
width: 50%;
padding: 5px;
}
}

/* До 476px: менші відступи в галереї */
@media screen and (max-width: 476px) {
.column {
padding: 3px;
}
}