/* Специфические стили для страницы калькулятора подоконников ООО ПолиКамень */

#wrap-calculator {
    padding: 100px 0 80px 0;
    background-color: #fcfcfc;
    font-family: 'PT Sans', sans-serif;
    color: #333;
}

@media (max-width: 991px) {
    #wrap-calculator {
        padding: 80px 0 50px 0;
    }
}

:root {
    --color3: rgba(255, 0, 0, 0);
}

/* Стили заголовков секций */
.title-section h3,
.title-section h1 {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 50px;
    text-align: center;
    color: #111;
}

.title-section h3 span.light,
.title-section h1 span.light {
    font-weight: 300;
    color: #c5a47e;
}

/* Контейнер калькулятора */
.calc-box {
    background: #ffffff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-top: 4px solid #c5a47e;
    height: 100%;
}

.calc-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #111;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

/* Поля формы */
.form-group label {
    font-size: 14px;
    font-weight: 700;
    color: #555;
    margin-bottom: 8px;
    display: block;
}

.form-control {
    width: 100%;
    height: 46px;
    background-color: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 10px 15px;
    font-size: 15px;
    color: #333;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    background-color: #fff;
    border-color: #c5a47e;
    outline: none;
    box-shadow: 0 0 8px rgba(197, 164, 126, 0.2);
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -10px;
    margin-left: -10px;
    margin-bottom: 15px;
}

.form-row > .form-group {
    padding-right: 10px;
    padding-left: 10px;
    flex: 1;
    min-width: 200px;
}

.mt-3 {
    margin-top: 15px;
}

.mt-4 {
    margin-top: 25px;
}

/* Блок вывода цены */
.result-box {
    background: #fdf8f4;
    border: 1px solid #f6e6d9;
    border-left: 5px solid #c5a47e;
    border-radius: 4px;
    padding: 20px 25px;
    margin-top: 30px;
}

.result-box h3 {
    font-size: 16px;
    font-weight: 700;
    color: #666;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-display {
    font-size: 42px;
    font-weight: 700;
    color: #c5a47e;
    line-height: 1;
    margin-bottom: 5px;
}

.price-display #calc-result {
    transition: all 0.3s ease;
}

.price-display .currency {
    font-size: 20px;
    font-weight: 400;
    color: #333;
    margin-left: 5px;
}

.currency-note {
    font-size: 12px;
    color: #888;
    margin: 0;
}

/* Блок с инструкцией */
.instructions-box {
    background: #ffffff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: 100%;
    border: 1px solid #eaeaea;
}

.instructions-box h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #111;
    border-bottom: 1px solid #eee;
    padding-bottom: 12px;
}

.instructions-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.instructions-list li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

.instructions-list li strong {
    color: #222;
}

.step-num {
    position: absolute;
    left: 0;
    top: 2px;
    width: 26px;
    height: 26px;
    background: #c5a47e;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 26px;
    font-size: 12px;
    font-weight: 700;
}

.calc-note {
    background: #f7f7f7;
    border-radius: 4px;
    padding: 15px;
    font-size: 13px;
    line-height: 1.5;
    color: #666;
    border-left: 3px solid #ccc;
}

.calc-note p {
    margin: 0;
}

/* Раздел изображений */
.images-section {
    margin-top: 60px;
    border-top: 1px solid #eaeaea;
    padding-top: 50px;
}

.image-wrapper {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.02);
    border: 1px solid #eee;
    margin-bottom: 30px;
}

.image-wrapper h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #111;
    text-align: center;
}

.image-wrapper a.gallery-link {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
}

.image-wrapper img {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-wrapper a.gallery-link:hover img {
    transform: scale(1.03);
}

.img-subtitle {
    font-size: 13px;
    color: #777;
    margin-top: 15px;
    margin-bottom: 0;
    text-align: center;
}

/* Класс для золотого акцента границ */
.border-accent {
    border: 2px solid #c5a47e !important;
}

/* Специфические медиа-запросы для формы */
@media (max-width: 767px) {
    .form-row > .form-group {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* --- Дополнительные базовые и макетные стили для автономии страницы --- */

body {
    background-color: #202020;
    margin: 0;
    font-family: 'PT Sans', sans-serif;
    color: #e7e7e7;
    overflow-x: hidden;
}

#main-wrap {
    background-color: #202020;
}

/* Прелоадер */
.preload {
    background-color: #202020;
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: 999999;
    top: 0;
    left: 0;
}

.spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    transform: translate(-50%, -50%);
}

.spinner > div {
    width: 10px;
    margin: 5px;
    height: 10px;
    background-color: #c5a47e;
    border-radius: 100%;
    display: inline-block;
    -webkit-animation: bounce 1.4s infinite ease-in-out both;
    animation: bounce 1.4s infinite ease-in-out both;
}

.spinner .bounce1 {
    -webkit-animation-delay: -0.32s;
    animation-delay: -0.32s;
}

.spinner .bounce2 {
    -webkit-animation-delay: -0.16s;
    animation-delay: -0.16s;
}

@-webkit-keyframes bounce {
    0%, 80%, 100% { -webkit-transform: scale(0) }
    40% { -webkit-transform: scale(1.0) }
}

@keyframes bounce {
    0%, 80%, 100% { 
        -webkit-transform: scale(0);
        transform: scale(0);
    } 40% { 
        -webkit-transform: scale(1.0);
        transform: scale(1.0);
    }
}

/* Шапка сайта */
#header-main {
    background-color: rgba(24, 24, 24, 0.95);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    padding-top: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

#header-main .container {
    position: relative;
}

.wrap-logo {
    width: 80%;
    padding: 10px 0;
}

.wrap-logo img {
    width: 100%;
    max-width: 180px;
}

#main-navigation {
    text-align: center;
}

.navigation-list {
    padding-left: 0;
    margin-bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.navigation-list li {
    list-style: none;
    letter-spacing: 2px;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    margin: 10px 15px;
}

.link-nav {
    color: #e7e7e7;
    transition: all .3s;
    text-decoration: none;
}

.link-nav:hover, .link-nav.active {
    color: #c5a47e;
    text-decoration: none;
}

.wrap-sosmed {
    padding-top: 10px;
}

.sosmed-list {
    padding-left: 0;
    margin-bottom: 0;
    text-align: right;
}

.sosmed-list li {
    display: inline-block;
    list-style: none;
}

.sosmed-list li a i {
    background-color: rgba(154, 152, 150, .3);
    border-radius: 50%;
    color: #e7e7e7;
    display: inline-block;
    height: 28px;
    width: 28px;
    line-height: 28px;
    margin: 0 5px;
    font-size: 14px;
    text-align: center;
    transition: all .3s;
}

.sosmed-list li a:hover i {
    background-color: #c5a47e;
}

/* Мобильное меню */
.wrap-mobiltoggle {
    display: none;
    position: absolute;
    z-index: 10000;
    right: 15px;
    top: 15px;
    cursor: pointer;
}

.wrap-mobiltoggle i {
    font-size: 28px;
    color: #e7e7e7;
}

.mobile-navwrap {
    width: 100%;
    height: 0%;
    position: fixed;
    display: block;
    visibility: hidden;
    overflow: auto;
    z-index: 99999;
    padding-top: 50px;
    background: rgba(32, 32, 32, .98);
    transition: all .3s ease-in-out;
    left: 0;
    top: 0;
}

.openmenu.mobile-navwrap {
    height: 100% !important;
    visibility: visible !important;
}

.mobile-navwrap .wrap-mobiltoggle {
    display: block;
    top: 20px;
    right: 20px;
}

#navmobile {
    position: relative;
    top: 15%;
    padding-bottom: 30px;
}

.navigation-listmobile {
    padding-left: 30px;
}

.navigation-listmobile li {
    list-style: none;
    display: block;
    letter-spacing: 3px;
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    font-weight: 400;
    text-transform: uppercase;
    margin: 15px 0;
}

#navmobile .sosmed-list {
    text-align: left;
    padding-top: 20px;
    padding-left: 30px;
}

/* Наложение на изображения (галерея) */
.overlay-porto {
    position: absolute;
    z-index: 1;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(24, 24, 24, 0.5);
    opacity: 0;
    transition: all 0.4s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.zoomico {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(197, 164, 126, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scale(0.7);
    transition: all 0.4s ease;
}

.zoomico .icon-proto {
    color: #fff;
    font-size: 28px;
}

.image-wrapper a.gallery-link:hover .overlay-porto {
    opacity: 1;
}

.image-wrapper a.gallery-link:hover .zoomico {
    transform: scale(1);
}

/* Подвал */
#wrap-footer {
    background: #181818;
    padding: 40px 0;
    border-top: 1px solid #282828;
}

.text-footer {
    text-align: center;
}

.text-footer label {
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #c5a47e;
    margin-bottom: 10px;
    display: block;
}

.text-footer p {
    font-size: 13px;
    color: #777;
    margin: 0;
}

/* Кнопка наверх */
.go-top {
    line-height: 45px;
    color: #202020;
    background-color: #c5a47e;
    display: block;
    position: fixed;
    bottom: 20px;
    width: 45px;
    z-index: 9999;
    height: 45px;
    text-align: center;
    right: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    border-radius: 4px;
    text-decoration: none;
}

.go-top:hover {
    color: #fff;
    background-color: #b3926c;
}

.go-top.show {
    opacity: 1;
    visibility: visible;
}

/* Стили для Лайтбокса (Галереи) */
#custom-lightbox {
    display: none;
    position: fixed;
    z-index: 999999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    user-select: none;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 85%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 75vh;
    border: 3px solid #c5a47e;
    border-radius: 4px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
    object-fit: contain;
    animation: fadeInSimple 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: -45px;
    right: 0;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.lightbox-close:hover {
    color: #c5a47e;
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    padding: 10px 20px;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 10;
}

.lightbox-prev {
    left: -80px;
}

.lightbox-next {
    right: -80px;
}

@media (max-width: 768px) {
    .lightbox-prev { left: 5px; font-size: 35px; }
    .lightbox-next { right: 5px; font-size: 35px; }
    .lightbox-close { right: 10px; top: -50px; }
    .lightbox-img { max-height: 60vh; }
}

.lightbox-prev:hover, .lightbox-next:hover {
    color: #c5a47e;
}

.lightbox-caption {
    margin-top: 15px;
    color: #fff;
    font-family: 'PT Sans', sans-serif;
    text-align: center;
    background: rgba(24, 24, 24, 0.85);
    padding: 10px 20px;
    border-radius: 4px;
    border-bottom: 2px solid #c5a47e;
    min-width: 250px;
}

.lightbox-caption h3 {
    margin: 0 0 5px 0;
    color: #c5a47e;
    font-size: 18px;
}

.lightbox-caption h4 {
    margin: 0;
    font-weight: normal;
    font-size: 14px;
    color: #ccc;
}

/* Анимации появления */
@keyframes fadeInSimple {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes fadeInUpCustom {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes fadeInCustom {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Медиа-запросы для шапки и меню */
@media (max-width: 991px) {
    #header-main {
        padding-top: 5px;
        padding-bottom: 5px;
        height: 70px;
    }
    .wrap-mobiltoggle {
        display: inline-block;
    }
    #main-navigation {
        display: none;
    }
    .wrap-sosmed {
        display: none;
    }
    .wrap-logo {
        width: 140px;
    }
}

/* Примечание о монтаже изделия */
.installation-note {
    font-size: 13px;
    color: #444;
    margin-top: 5px;
    margin-bottom: 0;
    font-weight: 600;
}

/* ==========================================================================
   Стиль формы для отправки в Telegram
   ========================================================================== */
#telegram-order-wrap {
    padding: 60px 0 80px 0;
    background-color: #111111;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.telegram-form-box {
    background: #1c1c1c;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 30px 25px;
    margin-top: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-top: 4px solid #c5a47e;
    text-align: left;
}

.telegram-form-box .form-description {
    color: #ccc;
    font-size: 15px;
    margin-bottom: 25px;
    line-height: 1.6;
    text-align: center;
}

.telegram-form-box .form-group label {
    font-size: 14px;
    font-weight: 700;
    color: #c5a47e;
    margin-bottom: 8px;
    display: block;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 0.5px;
}

.telegram-form-box .form-control {
    width: 100%;
    height: 46px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    padding: 10px 15px;
    font-size: 15px;
    color: #fff;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.telegram-form-box .form-control::placeholder {
    color: #888;
}

.telegram-form-box textarea.form-control {
    height: auto;
    resize: vertical;
}

.telegram-form-box .form-control:focus {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: #c5a47e;
    outline: none;
    box-shadow: 0 0 8px rgba(197, 164, 126, 0.3);
    color: #fff;
}

.file-upload-wrapper {
    position: relative;
    width: 100%;
}

.file-upload-input {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-upload-button {
    display: block;
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    text-align: center;
    color: #ccc;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.file-upload-wrapper:hover .file-upload-button {
    border-color: #c5a47e;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.btn-telegram-submit {
    display: inline-block;
    background-color: #c5a47e;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(197, 164, 126, 0.2);
}

.btn-telegram-submit:hover {
    background-color: #b5936d;
    box-shadow: 0 6px 20px rgba(197, 164, 126, 0.4);
    transform: translateY(-2px);
}

.btn-telegram-submit:active {
    transform: translateY(0);
}

.btn-telegram-submit:disabled {
    background-color: #777;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.status-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    font-size: 15px;
    text-align: center;
}

.status-success {
    background-color: rgba(40, 167, 69, 0.15);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #28a745;
}

.status-error {
    background-color: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #dc3545;
}


