html, body {
    overflow-x: hidden;
}




body {
    margin: 0;
    font-family: "Arial", sans-serif;
    background-color: #3A3D42;
    color: #D7CEBF;
    overflow-x: hidden;
}


/* ===== CAROUSEL ===== */


.carousel-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.carousel-item {
    display: none;
    width: 100%;
}

.carousel-item.active {
    display: block;
}

.carousel-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
}

.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    font-size: 24px;  /* чуть меньше на мобильных */
    padding: 8px;
    cursor: pointer;
    border-radius: 50%;
}

/* Позиция стрелок */
.carousel-control-prev { left: 10px; }
.carousel-control-next { right: 10px; }

/* Адаптивные точки */
@media (max-width: 768px) {
    .carousel-control-prev,
    .carousel-control-next {
        font-size: 20px;
        padding: 6px;
    }
}

@media (max-width: 900px) {
    .carousel-block {

        margin: 0 auto;        /* центрируем блок */

    }

    .carousel-inner {
        width: 100%;           /* уверяемся, что внутренний контейнер тянется */
        display: block;        /* убираем flex, если был */
    }

    .carousel-img {
        height: 300px;
        width: 100%;
        object-fit: cover;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 35px;
        height: 35px;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 600px) {
    .carousel-block {
        width: 95%;
        max-width: 100%;
        margin: 0 auto;
        left: 0;
        right: 0;
    }

    .carousel-img {
        height: 200px;
        width: 100%;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 30px;
        height: 30px;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 14px;
        height: 14px;
    }
}


/* ===== НАВБАР ===== */
/* ===== MENU ===== */
.menu {
    background-color: #3A3D42;
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid #505050;
}

.menu-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1000px;
    margin: auto;
    padding: 5px 20px;
    flex-wrap: wrap; /* чтобы элементы переносились на мобильных */
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #D7CEBF;
}

.logo h1 {
    font-size: 26px;
    margin: 0;
}

.logo h2 {
    font-size: 18px;
    letter-spacing: 3px;
    margin: 0;
}

.menu-items {
    list-style: none;
    display: flex;
    gap: 30px; /* уменьшил для мобильных */
    margin: 10px 0;
    padding: 0;
    flex-wrap: wrap;
}

.menu-items a {
    text-decoration: none;
    color: #D7CEBF;
    font-weight: bold;
    font-size: 19px;
    transition: 0.3s;
}

.menu-items a:hover {
    border-bottom: 2px solid #D7CEBF;
}

/* ===== COLOR SELECT ===== */
.color-select {
    position: relative;
    width: 100%;
    margin-top: 10px;
}

#selectedC {
    background: #f7f7f7;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    user-select: none;
    text-align: center;
    border: 1px solid #ccc;
}

.color-list {
    display: none;
    position: absolute;
    z-index: 100;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-top: 5px;
    padding: 10px;
    max-height: 160px;
    overflow-y: auto;
    width: 100%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);

    display: grid;
    grid-template-columns: repeat(auto-fill, 36px);
    gap: 8px;
    justify-content: center;
}

.color-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #ccc;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
}

.color-circle:hover {
    transform: scale(1.15);
    border-color: #666;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 992px) {
    .menu-items {
        gap: 20px;
    }

    .logo h1 {
        font-size: 22px;
    }

    .logo h2 {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .menu-inner {
        padding: 5px 10px;
    }

    .menu-items {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .logo {
        flex-wrap: wrap;
        max-width: 100%;
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    .menu-items a {
        font-size: 14px;
    }

    .color-list {
        grid-template-columns: repeat(auto-fill, 28px);
        gap: 3px;
    }

    .color-circle {
        width: 28px;
        height: 28px;
    }
}

/* ===== ОСНОВНОЙ ГРИД ===== */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
    "title title"
    "carousel text";
    align-items: center;
    justify-items: center;
    padding-top: 120px;
    gap: 40px;
    position: relative;
    flex: 1;
    grid-template-rows: auto 1fr auto; /* можно изменить под нужный макет */
}

/* ===== ЛУНА ===== */
.moon-bg {
    position: absolute;
    right: -85px;
    bottom: 10px;
    width: 35vw;
    z-index: -1;
    opacity: 0.9;
}

/* ===== ЗАГОЛОВОК ===== */
.intro {
    grid-area: title;
    text-align: center;
    position: relative;
    left: -550px;
}

.intro h1 {
    font-size: 3rem;
    letter-spacing: 3px;
}

/* ===== КАРУСЕЛЬ ===== */
.carousel-block {
    grid-area: carousel;
    width: 100%;
    max-width: 480px;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 10px;
    position: relative;
}

.carousel-item img {
    width: 100%;
    border-radius: 10px;
}

/* ===== ТЕКСТОВЫЙ БЛОК ===== */
.text-block {
    grid-area: text;
    text-align: left;
    max-width: 500px;
}

.text-block h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.text-block p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: justify;
}

.calc-btn {
    background-color: #D7CEBF;
    color: #000;
    border: none;
    padding: 10px 30px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

#phoneModal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

#phoneModal.show {
    display: flex;
}

.phone-modal-content {
    position: relative;
    background: url('images/phone.png') center/cover no-repeat; /* фоновая картинка */
    border-radius: 18px;
    padding: 25px 30px;
    width: 400px;
    max-width: 95%;
    text-align: center;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    z-index: 1;
}

.phone-modal-content h2,
.phone-modal-content p {
    margin-bottom: 15px;
}

.closeModalPhone {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 22px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
}

.closeModalPhone:hover {
    color: #ccc;
    transform: scale(1.15);
}

.call-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    background: rgba(255,255,255,0.8);
    color: #000;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.call-btn:hover {
    background: rgba(255,255,255,1);
}

.phone-btn {
    position: fixed; /* чтобы всегда была видна */
    bottom: 20px;    /* отступ от низа */
    right: 20px;     /* отступ от правого края */
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: #d8c2a4; /* цвет фона кнопки */
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* поверх всего */
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.phone-btn img {
    width: 30px;  /* размер иконки */
    height: 30px;
}



.calc-btn2{
    background-color: #D7CEBF;
    color: #000;
    border: none;
    padding: 10px 30px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    position: relative;
    left: 150px;
}



.calc-btn:hover {
    background-color: #bfb2a0;
}

.calc-btn2:hover {
    background-color: #bfb2a0;
}



/* ===== КНОПКА ЗВОНКА ===== */
.phone-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #000;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
}

.phone-btn img {
    width: 30px;
    height: 30px;
    filter: invert(1);
}

/* ===== АДАПТИВ ===== */
@media (max-width: 768px) {
    .main-grid {
        padding-top: 100px;
        gap: 20px;
    }

    .intro {
        left: 0;
        text-align: center;
    }

    .intro h1 {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }

    .carousel-block {
        max-width: 90%;
    }

    .text-block {
        max-width: 90%;
        text-align: center;
    }

    .text-block h2 {
        font-size: 1.3rem;
    }

    .text-block p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .calc-btn,
    .calc-btn2 {
        width: auto;
        padding: 8px 20px;
    }

    .calc-btn2 {
        position: fixed;
        bottom: 20px;
        right: 20px;       /* відступ від правого краю */
        max-width: calc(100% - 40px); /* не більше ширини екрану мінус відступи */
        box-sizing: border-box;
        padding: 8px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .moon-bg {
        position: absolute;
        right: 0;
        bottom: 0;
        transform: none; /* головне */
        max-width: 70vw;
        height: auto;
        opacity: 0.4;
        overflow: hidden;
    }

    .intro h1 {
        font-size: 1.8rem;
    }

    .text-block h2 {
        font-size: 1.2rem;
    }

    .text-block p {
        font-size: 0.9rem;
    }

    .carousel-block {
        max-width: 100%;
    }

    .calc-btn,
    .calc-btn2 {
        width: 100%;
        padding: 10px 0;
    }

    .phone-btn {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }

    .phone-btn img {
        width: 25px;
        height: 25px;
    }
}




/* ===== СЕКЦІЯ ТОВАРІВ ===== */
.products-section {
    padding: 100px 20px;
    background-color: #3A3D42;
    color: #D7CEBF;
    text-align: center;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 60px;
    letter-spacing: 2px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
}

.product-card {
    background-color: #3A3D42;
    border-radius: 15px;
    padding: 100px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.product-card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

.product-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.product-card p {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 10px;
}

.price {
    display: block;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #D7CEBF;
}

.order-btn {
    background-color: #D7CEBF;
    color: #000;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.order-btn:hover {
    background-color: #bfb2a0;
}






.filters-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: #3A3D42;
    color: white;
    padding: 30px 50px;
    font-family: sans-serif;
}

.filter-inline-group {
    display: flex;
    align-items: center;
    gap: 50px;
}

.filter-inline-title {
    font-size: 22px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.filter-btn {
    background: none;
    border: none;
    color: white;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    padding: 8px 10px;
    transition: color 0.2s;
    border-radius: 4px;
}

.filter-btn:hover {
    background-color: #444;
}

.color-btn {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid white;
    display: inline-block;
    cursor: pointer;
}


/* ===== АДАПТИВ ===== */




.container {
    max-width: 980px;
    margin: 0 auto;
}

.section-title {
    letter-spacing: 2px;
    font-size: 18px;
    margin: 0 0 18px;
    color: var(--muted);
}

.title-row {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 12px;
}

.line {
    height: 1px;
    background: #555;
    flex: 1;
}

/* --- ПРОЦЕСС --- */
.process {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 36px;
}

.process .photo {
    flex: 0 0 300px;       /* базова ширина на десктопі */
    max-width: 100%;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.5);
}

.process .photo img {
    width: 100%;
    height: auto;          /* зберігаємо пропорції */
    object-fit: cover;     /* обрізання на великих екранах */
    display: block;
}

@media (max-width: 480px) {
    .process {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .process .photo {
        width: 200px;  /* фіксована ширина */
        height: 200px; /* квадрат */
    }

    .process .photo img {
        width: 50%;
        height: 100%;
        object-fit: cover; /* обрізання буде по центру, але картинка заповнить квадрат */
    }
}

.process .texts {
    flex: 1;
}

.process p {
    margin: 0 0 12px;
    line-height: 1.4;
    font-size: 13px;
    color: #d9d9d9;
    text-transform: uppercase;
    font-weight: 600;
}

/* --- ВІДГУКИ --- */
.widgets {
    background: linear-gradient(180deg, #3e4043 0%, #3a3b3f 100%);
    padding: 18px;
    border-radius: 3px;
    border: 4px solid var(--accent);
    box-sizing: border-box;
    margin-bottom: 28px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    align-items: start;
    margin-bottom: 24px;
}

.card-thumb {
    background: #e9e1d7;
    padding: 20px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
}

.card-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.testimonials {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.testimonial {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px;
    background: #E9E1D7;
    border-radius: 6px;
    color: #222;
}

.avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #47a3d6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
}

.t-right h4 {
    margin: 0;
    font-size: 14px;
    letter-spacing: 1px;
}

.t-right p {
    margin: 6px 0 0;
    font-size: 12px;
    color: #333;
    line-height: 1.3;
}

/* ===== АДАПТИВ: ПРОЦЕСС И ОТЗЫВЫ ===== */
@media (max-width: 900px) {
    /* Процесс */
    .process {
        flex-direction: column;
        gap: 20px;
    }

    .process .photo {
        width: 100%;
        height: 200px;
        flex: none;
    }

    .process .texts {
        width: 100%;
    }

    .process p {
        font-size: 12px;
    }

    /* Галерея отзывов */
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials {
        grid-template-columns: 1fr;
    }

    .testimonial {
        flex-direction: column;
        align-items: flex-start;
    }

    .avatar {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .t-right h4 {
        font-size: 13px;
    }

    .t-right p {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    /* Процесс */
    .process .photo {
        height: 160px;
    }

    .process p {
        font-size: 11px;
    }

    /* Галерея отзывов */
    .gallery {
        grid-template-columns: 1fr;
    }

    .card-thumb {
        height: 140px;
        padding: 15px;
    }

    .testimonial {
        padding: 12px;
        gap: 10px;
    }

    .avatar {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .t-right h4 {
        font-size: 12px;
    }

    .t-right p {
        font-size: 10px;
    }
}


/* ===== МОДАЛКА (фон) ===== */



#previewImg {
    display: block;
    margin: 10px auto;
    width: 250px;        /* або будь-який фіксований розмір */
    height: 250px;
    object-fit: cover;   /* або contain, якщо хочеш без обрізання */
    border-radius: 8px;
}


.modal.show {
    display: flex;
}

/* ===== ВІКНО ===== */
/* ====== МОДАЛЬНЕ ВІКНО ====== */
/* --- Основне оформлення модалки --- */
.modal {
    display: none; /* спочатку схована */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);

    /* Центрування контенту */
    justify-content: center;
    align-items: center;
}


.modal-content {
  background: #fff;
  border-radius: 18px;
  padding: 25px 30px;
  width: 90%;
  max-width: 450px; /* фіксована ширина */
  height: 600px; /* фіксована висота */
  text-align: center;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  animation: modalFade 0.35s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

@keyframes modalFade {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Кнопка закриття --- */
#closeModal {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 26px;
  cursor: pointer;
  color: #555;
}

/* --- Вибір типу --- */
.type-select {
  margin-bottom: 15px;
}

.type-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.type-btn {
  background: #e7e7e7;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  transition: 0.3s;
}

.type-btn.active {
  background: #0078ff;
  color: #fff;
}

/* --- Вибір кольору --- */
.color-select {
  margin-bottom: 15px;
}

#selectedC {
  background: #f2f2f2;
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
}

.color-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, 32px);
  gap: 10px;
  max-height: 120px;
  overflow-y: auto;
  margin-top: 10px;
  justify-content: center;
  padding: 5px;
}

.color-list div {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #ccc;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}

.color-list div:hover {
  transform: scale(1.1);
  border-color: #0078ff;
}

/* --- Контейнер для зображення --- */
.img-container {
  width: 100%;
  height: 250px;
  background: #f8f8f8;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#blindI {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* --- Форма --- */
#orderForm {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto; /* форма завжди знизу */
}

#orderForm input {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
}

#orderForm button {
  background: #0078ff;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
  font-size: 15px;
  transition: background 0.3s;
}

#orderForm button:hover {
  background: #005fcc;
}


/* ====== ВІКНО ====== */






/* ====== КНОПКА ЗАКРИТТЯ ====== */


/* Фіксована область для фото */





/* ====== ЗАГОЛОВОК ====== */
.modal-content h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #2d2d2d;
    display: block;
    margin: 0 auto;
    object-fit: cover;
}

/* ====== ЗОБРАЖЕННЯ ====== */
#blindImg {
    width: 100%;
    height: 500px;
    border-radius: 10px;
    margin: 10px 0 20px 0;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

/* ====== ВИБІР ТИПУ ====== */
.type-select {
    margin-bottom: 20px;
}

.type-select label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
}

.type-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.type-btn {
    flex: 1;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 8px 0;
    background: #f8f8f8;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.type-btn:hover {
    background: #efe3d1;
}

.type-btn.active {
    background: #d8c2a4;
    border-color: #b89d76;
    color: #000;
}

/* ====== ВИБІР КОЛЬОРУ ====== */
.color-select {
    position: relative;
    margin-bottom: 20px;
    text-align: left;
}

.color-select label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
}

.color-button {
    background: #e5d5bd;
    border: 1px solid #cbb292;
    border-radius: 8px;
    padding: 8px 12px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
}

.color-button:hover {
    background: #dbc8ad;
}

.color-list {
    display: none;
    position: absolute;
    top: 110%;
    left: 0;
    width: 100%;
    max-height: 180px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    z-index: 20;
}

.color-list div {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 14px;
}

.color-list::-webkit-scrollbar {
    width: 6px;
}

.color-list::-webkit-scrollbar-thumb {
    background-color: #c0b097;
    border-radius: 3px;
}

.color-list div:hover {
    background: #f7f7f7;
}

.color-circle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid #aaa;
}

/* ====== КНОПКА "ЗАМОВИТИ" ====== */
.order-btn {
    display: block;
    width: 100%;
    border: none;
    background: #d8c2a4;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    padding: 10px 0;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.order-btn:hover {
    background: #c7ac88;
}
/* ===== АДАПТИВ ДЛЯ МОДАЛКИ ===== */
@media (max-width: 900px) {
    .modal-content {
        width: 95%;
        height: auto;  /* чтобы контент подстраивался */
        padding: 20px;
        display: block;
        margin: 0 auto;
        object-fit: cover;
    }

    #blindImg {
        height: 250px;
    }

    .type-buttons {
        flex-direction: column;
        gap: 6px;
    }

    .type-btn {
        flex: 1;
        font-size: 14px;
        padding: 6px 0;
    }

    .color-list {
        max-height: 140px;
    }

    .color-list div {
        padding: 4px 8px;
        font-size: 13px;
    }

    .order-btn {
        font-size: 14px;
        padding: 8px 0;
    }
}

/* Модалка на телефонах */
@media (max-width: 480px) {
    .modal-content {
        width: 65%;          /* робимо вже */
        padding: 12px;       /* зменшуємо внутрішні відступи */
        border-radius: 10px; /* менший радіус */
        max-height: 80vh;    /* щоб не займала весь екран */
        overflow-y: auto;
        display: block;
        margin: 0 auto;
        object-fit: cover;/* щоб прокручувалась всередині */
    }

    #blindImg {
        height: 100px;
        display: block;
        margin: 0 auto;
        object-fit: cover;
    }

    .type-btn {
        font-size: 12px;
        padding: 5px 0;
    }

    .order-btn {
        font-size: 13px;
        padding: 7px 0;
    }
}


@media (max-width: 380px) {
    .modal-content {
        width: 65%;          /* робимо вже */
        padding: 12px;       /* зменшуємо внутрішні відступи */
        border-radius: 10px; /* менший радіус */
        max-height: 80vh;    /* щоб не займала весь екран */
        overflow-y: auto;
        display: block;
        margin: 0 auto;
        object-fit: cover;/* щоб прокручувалась всередині */
    }

    #blindImg {
        height: 100px;
        display: block;
        margin: 0 auto;
        object-fit: cover;
    }

    .type-btn {
        font-size: 12px;
        padding: 5px 0;
    }

    .order-btn {
        font-size: 13px;
        padding: 7px 0;
    }
}



/* ===== ЦЕНА ===== */
.price {
    font-size: 18px;
    font-weight: 700;
    margin: 10px 0 25px;
    color: #333;
}

/* ===== КНОПКА ЗАМОВИТИ ===== */
.submit-btn {
    width: 100%;
    background: #d7be9d;
    border: none;
    border-radius: 8px;
    padding: 10px 0;
    font-weight: 600;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.submit-btn:hover {
    background: #c4a87f;
}












/*ласт*/
/* ===== FOOTER / ОСТАННЯ СТОРІНКА ===== */
.footer {
    background-color: #2E3034;
    color: #D7CEBF;
    padding: 80px 20px 30px;
    font-family: "Arial", sans-serif;
    position: relative;
    z-index: 5;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}

.footer h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
    color: #E8DFD1;
    position: relative;
}

.footer h3::after {
    content: "";
    display: block;
    width: 50px;
    height: 2px;
    background-color: #D7CEBF;
    margin-top: 6px;
}

.footer p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #CFC7B8;
    text-align: justify;
}

.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer li {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.footer a {
    color: #D7CEBF;
    text-decoration: none;
    transition: 0.3s;
}

.footer a:hover {
    color: #fff;
    text-decoration: underline;
}

/* ===== СОЦІАЛЬНІ МЕРЕЖІ ===== */
.social-links {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 10px;
}

.social-links img {
    width: 26px;
    height: 26px;
    filter: invert(90%);
    opacity: 0.8;
    transition: 0.3s;
}

.social-links img:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* ===== НИЖНЯ СМУГА ===== */
.footer-bottom {
    border-top: 1px solid #555;
    margin-top: 50px;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #B8B0A0;
    letter-spacing: 0.5px;
}

.footer-bottom p {
    margin: 0;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer h3::after {
        margin-left: auto;
        margin-right: auto;
    }

    .social-links {
        justify-content: center;
    }
}



/* ===== МОДАЛКА ТЕЛЕФОНУ ===== */
/* ===== МОДАЛКА ЗВОНОК ===== */
.modalP {
    display: none; /* по умолчанию скрыта */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6); /* затемнение фона */
    backdrop-filter: blur(3px);
    transition: all 0.3s ease;
}

.phone-modal-content {
    background-color: #f9f5ef; /* похожий на твой фон */
    margin: 10% auto;
    padding: 30px 20px;
    border-radius: 20px;
    width: 90%;
    height: 400px;
    max-width:350px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
    position: relative;
    text-align: center;
}

.closeModalPhone {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #333;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.closeModalPhone:hover {
    color: #a83f3f;
}

.phone-modal-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    margin-bottom: 15px;
    color: #3A3D42;
}

.phone-modal-content p {
    font-size: 14px;
    margin-bottom: 20px;
    color: #3A3D42;
}

.phone-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.phone-form input[type="tel"] {
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 16px;
    outline: none;
    transition: all 0.2s ease;
}

.phone-form input[type="tel"]:focus {
    border-color: #798ED1;
    box-shadow: 0 0 5px rgba(121, 142, 209, 0.5);
}

.phone-form .submit-btn {
    background-color: #798ED1;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 12px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.phone-form .submit-btn:hover {
    background-color: #5b6fbf;
}

.form-message {
    margin-top: 10px;
    font-size: 14px;
    color: green;
    min-height: 18px;
    font-weight: 500;
}


/* кнопка "Відправити" */
.submit-btn {
    background-color: #D7CEBF;
    color: #2E3034;
    font-size: 1rem;
    padding: 12px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}
.submit-btn:hover {
    background-color: #E8DFD1;
    transform: translateY(-2px);
}

/* повідомлення */
.form-message {
    margin-top: 10px;
    font-size: 0.9rem;
}



.closeModalPhone {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #333;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.closeModalPhone:hover {
    color: #a83f3f;
}

.phone-modal-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    margin-bottom: 15px;
    color: #3A3D42;
}

.phone-modal-content p {
    font-size: 14px;
    margin-bottom: 20px;
    color: #3A3D42;
}

.phone-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.phone-form input[type="tel"] {
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 16px;
    outline: none;
    transition: all 0.2s ease;
}

.phone-form input[type="tel"]:focus {
    border-color: #798ED1;
    box-shadow: 0 0 5px rgba(121, 142, 209, 0.5);
}

.phone-form .submit-btn {
    background-color: #798ED1;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 12px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.phone-form .submit-btn:hover {
    background-color: #5b6fbf;
}

.form-message {
    margin-top: 10px;
    font-size: 14px;
    color: green;
    min-height: 18px;
    font-weight: 500;
}


/* кнопка "Відправити" */
.submit-btn {
    background-color: #D7CEBF;
    color: #2E3034;
    font-size: 1rem;
    padding: 12px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}
.submit-btn:hover {
    background-color: #E8DFD1;
    transform: translateY(-2px);
}

/* ===== АДАПТИВ ДЛЯ ТЕЛЕФОННОЙ МОДАЛКИ ===== */
@media (max-width: 900px) {
    .phone-modal-content {
        width: 90%;
        height: auto;
        margin: 15% auto;
        padding: 20px;
    }

    .phone-modal-content h2 {
        font-size: 20px;
    }

    .phone-modal-content p {
        font-size: 13px;
    }

    .phone-form input[type="tel"] {
        font-size: 15px;
        padding: 10px 12px;
    }

    .phone-form .submit-btn {
        font-size: 15px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .phone-modal-content {
        width: 95%;
        padding: 15px;
        margin: 20% auto;
    }

    .phone-modal-content h2 {
        font-size: 18px;
    }

    .phone-form input[type="tel"] {
        font-size: 14px;
        padding: 8px 10px;
    }

    .phone-form .submit-btn {
        font-size: 14px;
        padding: 8px;
    }
}



/* повідомлення */
.form-message {
    margin-top: 10px;
    font-size: 0.9rem;
}

/* кнопка "Зателефонувати" */
.call-btn {
    margin-top: 20px;
    background: none;
    border: 1px solid #D7CEBF;
    color: #D7CEBF;
    font-size: 1rem;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}
.call-btn:hover {
    background-color: #D7CEBF;
    color: #2E3034;
    transform: translateY(-2px);
}

/* анімація */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}



#selectedC {
    padding: 8px 12px;
    border: 2px solid #3A3D42;
    border-radius: 8px;
    cursor: pointer;
    background-color: #fff;
    width: fit-content;
}

.color-list {
    display: none;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.color-list .C {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: 0.2s;
}

.color-list .C:hover {
    border-color: #3A3D42;
    background-color: #f0f0f0;
}

.color-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid #ccc;
}

/* ===== Зображення штори ===== */
#blindI {
    width: 100%;
    margin-top: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* ===== ФОРМА ===== */
#orderForm {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

#orderForm input {
    padding: 10px;
    border-radius: 8px;
    border: 2px solid #3A3D42;
    font-size: 14px;
}

#orderForm button {
    padding: 10px 15px;
    border-radius: 8px;
    border: none;
    background-color: #3A3D42;
    color: #faf5ed;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

#orderForm button:hover {
    background-color: #d0cc97;
}

/* ===== Кнопка замовити ===== */
.order-btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: 2px solid #3A3D42;
    background-color: #faf5ed;
    color: #3A3D42;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.order-btn:hover {
    background-color: #3A3D42;
    color: #faf5ed;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 768px) {
    #blindI {
        width: 100%;
        height: auto;
        margin-top: 10px;
        border-radius: 6px;
    }

    #orderForm {
        gap: 10px;
        margin-top: 12px;
    }

    #orderForm input {
        font-size: 13px;
        padding: 8px;
    }

    #orderForm button {
        font-size: 14px;
        padding: 8px 12px;
    }

    .order-btn {
        padding: 10px 16px;
        font-size: 14px;
    }

    #selectedC {
        padding: 6px 10px;
        font-size: 14px;
    }

    .color-list .C {
        padding: 5px 6px;
        gap: 4px;
    }

    .color-circle {
        width: 16px;
        height: 16px;
    }

    .call-btn {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    #blindI {
        height: auto;
    }

    #orderForm {
        gap: 8px;
        margin-top: 10px;
    }

    #orderForm input {
        font-size: 12px;
        padding: 6px 8px;
    }

    #orderForm button {
        font-size: 13px;
        padding: 6px 10px;
    }

    .order-btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    #selectedC {
        padding: 5px 8px;
        font-size: 13px;
    }

    .color-list .C {
        padding: 4px 5px;
        gap: 4px;
    }

    .color-circle {
        width: 14px;
        height: 14px;
    }

    .call-btn {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
}

/* Контейнер карусели */
/* Контейнер карусели */
.carousel-block {
    width: 50%;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.carousel-inner {
    width: 100%;
    position: relative;
}

.carousel-item {
    display: none;
}

.carousel-item.active {
    display: block;
}

.carousel-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center;
}

/* Кнопки */
.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(0,0,0,0.5);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-control-prev {
    left: 10px;
}

.carousel-control-next {
    right: 10px;
}

/* Стрелки */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    display: block;
}

.carousel-control-prev-icon {
    background-image: url('images/2.png'); /* твоя стрелка влево */
}

.carousel-control-next-icon {
    background-image: url('images/1.png'); /* твоя стрелка вправо */
}
/* ===== АДАПТИВ КАРУСЕЛЬ ===== */
@media (max-width: 900px) {
    .carousel-block {
        width: 80%;
        max-width: 500px;
    }

    .carousel-img {
        height: 300px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 35px;
        height: 35px;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 600px) {
    .carousel-block {
        width: 95%;
        max-width: 100%;
    }

    .carousel-img {
        height: 200px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 30px;
        height: 30px;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 14px;
        height: 14px;
    }
}

