/* sharper card tile */
.card-tile{
  position: relative;
  border-radius: var(--tile-radius);
  background: linear-gradient(180deg, #ffffff, #fbfbfb);
  /* Уберём слабую внешнюю границу - она будет имитироваться псевдоэлементом */
  border: none;
  /* более чёткая основная тень (меньше blur, больше offset) */
  box-shadow: 0 6px 16px rgba(16,24,40,0.10), 0 2px 6px rgba(16,24,40,0.06);
  transition: transform 220ms cubic-bezier(.2,.9,.2,1), box-shadow 220ms;
  overflow: visible;
  will-change: transform, box-shadow;
  transform-origin: center;
}


/* внутренний тонкий световой штрих (делает кромку резче) */
.card-tile::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  /* лёгкий внутренний блик сверху + очень тонкая тёмная инсет тень снизу */
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), inset 0 -1px 0 rgba(0,0,0,0.03);
}

/* вспомогательная чёткая обводка вне плитки — создаёт «острую» кромку */
.card-tile::after{
  content: "";
  position: absolute;
  left: -1px;
  top: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: calc(var(--tile-radius) + 1px);
  pointer-events: none;
  border: 1px solid rgba(16,24,40,0.08); /* увеличь до 0.10–0.12, если нужно */
  mix-blend-mode: normal;
  opacity: 0.98;
}

/* при hover — чуть усиливаем тень и подъём */
.card-tile:hover{
  transform: translateY(-8px) scale(1.006);
  box-shadow: 0 14px 30px rgba(16,24,40,0.14), 0 6px 12px rgba(16,24,40,0.09);
  z-index: 6;
}

/* картинка — сохраняем плавное увеличение */
.card-tile .card-img{
  transition: transform 420ms cubic-bezier(.2,.9,.2,1);
}
.card-tile:hover .card-img{
  transform: scale(1.06);
}

/* Если фон контейнера очень светлый — добавим тонкую рамку вокруг всей сетки,
   чтобы плитки выглядели «вырезанными» */
.presentations-grid{
  background: transparent;
  padding: 1rem; /* увеличь, если плитки сливаются */
}

/* в случае, если хочешь ещё более «резкую» границу используем модификатор */
.card-tile--sharp::after{
  border: 1px solid rgba(16,24,40,0.12); /* сильнее */
}

/*Стиль для нажимабельного эффекта карточки*/
.transition-all:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -12px rgba(0, 0, 0, 0.2);
    background-color: #f8f9fa;
}

.transition-all:hover .card-title {
    color: #0d6efd;
}

.transition-all:active {
    transform: translateY(-2px);
}

.mobile-bottom-bar {
    position: fixed;
    bottom: 10px;
    left: 0;
    width: 100%;
    z-index: 1050;
    padding: 0 12px;
}

/* контейнер */
.mobile-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;

    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px);

    border-radius: 20px;
    padding: 8px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* кнопки */
.mobile-btn {
    flex: 1;
    border: none;
    background: transparent;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 6px 4px;
    text-decoration: none;

    color: #333;
    font-size: 12px;

    transition: all 0.25s ease;
}

/* иконки */
.mobile-btn i {
    font-size: 18px;
    margin-bottom: 2px;
    transition: transform 0.25s ease;
}

/* hover / tap */
.mobile-btn:active {
    transform: scale(0.92);
}

.mobile-btn:hover i {
    transform: translateY(-2px);
}

/* активное состояние (если нужно) */
.mobile-btn.active {
    color: #000;
    font-weight: 600;
}

#services {
    scroll-margin-top: 100px;
}

.nav-link.dropdown-toggle::after {
    border-top-color: red;
}

/* Толстая золотая линия для акцента */
.gold-divider-thick {
    width: 100%;
    height: 4px;
    margin: 0 auto 1.5rem auto;
    border: none;
    background: linear-gradient(90deg, #8a6d3b, #ffd700, #fff8dc, #ffd700, #8a6d3b);
    border-radius: 4px;
}

.silver-solid {
color: #c0c0c0;
text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}
.silver-chrome {
    background: linear-gradient(135deg,
        #e0e0e0 0%,
        #ffffff 20%,
        #b0b0b0 40%,
        #e8e8e8 60%,
        #ffffff 80%,
        #c0c0c0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 5px rgba(255,255,255,0.3);
}

.card img {
height: 200px;
object-fit: cover;
}

.bi {
  vertical-align: -.125em;
  fill: currentColor;
}

.menu-text {
    font-size: clamp(1.5rem, 5vw, 2rem); /* Увеличенный размер текста */
    font-weight: bold; /* Жирный текст */
    display: inline-block;
}

.main-content {
    padding-top: 32px;
}
footer {
  background-color: #343a40;
  color: #ccc;
  padding: 20px 0;
}
.max-callb-btn{
    background-color: transparent;
    color:#8a2be2;
    border-color: #8a2be2;
    margin-bottom: 10px;
    display: block;
}

.max-callb-btn:hover {
background-color: #8a2be2;
color: #fff;
border-color: #8a2be2;
}

.card-img-overlay-gradient {
    background: linear-gradient(
        90deg,
        rgba(220, 220, 220, 0.95) 40%,
        rgba(220, 220, 220, 0.70) 50%,
        rgba(220, 220, 220, 0.00) 80%,
        transparent 40%)
}

.custom-close-btn {
    width: 60px;
    height: 60px;

    padding: 0;

    border-radius: 50%;
    border: 1px solid rgba(255, 215, 0, 0.5);

    background:
        radial-gradient(
            circle at top,
            rgba(20, 20, 20, 0.82)
        );

    color: #ffd700;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 34px;
    line-height: 1;
    font-family: Arial, sans-serif;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    box-shadow:
        0 0 22px rgba(255, 215, 0, 0.18),
        0 10px 28px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.custom-close-btn span {
    display: block;
    line-height: 1;
    transform: translateY(-1px);
    }

.custom-close-btn:hover {
        transform: rotate(90deg) scale(1.06);
        }

.custom-renovation-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;

    background:
        linear-gradient(
            135deg,
            rgba(255, 215, 0, 0.08),
            rgba(255, 255, 255, 0.035) 28%,
            rgba(25, 25, 25, 0.72) 100%
        );

    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);

    border: 2px solid rgba(255, 215, 0, 0.32);
    border-radius: 20px;

    color: #f4f4f4;

    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.45),
        0 0 28px rgba(255, 215, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 0 24px rgba(255, 215, 0, 0.04);

    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease,
        border-color 0.28s ease,
        background 0.28s ease;
}

.custom-renovation-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;

    background:
        radial-gradient(
            circle at top left,
            rgba(255, 215, 0, 0.22),
            transparent 34%
        ),
        radial-gradient(
            circle at bottom right,
            rgba(255, 215, 0, 0.1),
            transparent 38%
        );

    opacity: 0.75;
    pointer-events: none;
}

.custom-renovation-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 14%;
    width: 72%;
    height: 1px;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 235, 140, 0.75),
        transparent
    );

    opacity: 0.8;
    pointer-events: none;
}

.custom-renovation-card:hover {
    transform: translateY(-5px);

    border-color: rgba(255, 215, 0, 0.62);

    background:
        linear-gradient(
            135deg,
            rgba(255, 215, 0, 0.12),
            rgba(255, 255, 255, 0.05) 30%,
            rgba(25, 25, 25, 0.78) 100%
        );

    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.55),
        0 0 34px rgba(255, 215, 0, 0.16),
        0 0 70px rgba(255, 215, 0, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 0 30px rgba(255, 215, 0, 0.07);
}

.custom-renovation-card:hover::before {
    opacity: 1;
    }

.modal-content {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.custom-modal-card {
    position: relative;
    isolation: isolate;

    padding: 20px;
    display: flex;
    flex-direction: column;
    max-height: 90vh;

    overflow: hidden;
    border-radius: 22px;

    background:
        linear-gradient(
            135deg,
            rgba(15, 15, 20, 0.98) 0%,
            rgba(20, 20, 25, 0.96) 50%,
            rgba(10, 10, 12, 0.99) 100%
        );

    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);

    border: 2px solid rgba(255, 215, 0, 0.28);

    color: #f4f4f4;

    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.45),
        0 0 28px rgba(255, 215, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 0 24px rgba(255, 215, 0, 0.04);
}

.custom-modal-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.custom-modal-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;

    padding-right: 6px;
}

.custom-modal-image-wrapper {
    width: 100%;
}

.custom-modal-image {
    width: 100%;
    border-radius: 16px;
    cursor: pointer;
    object-fit: cover;
    border: 2px solid rgba(255, 215, 0, 0.25);
    background: rgba(255, 255, 255, 0.02);
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.custom-modal-scroll::-webkit-scrollbar {
    width: 10px;
}
.custom-modal-scroll::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.04);
    border-radius: 20px;
}
.custom-modal-scroll::-webkit-scrollbar-thumb {
    background:
        linear-gradient(
            180deg,
            #ffd700,
            #c9a227
        );

    border-radius: 20px;

    border: 2px solid rgba(0,0,0,0.25);
}
.custom-modal-scroll::-webkit-scrollbar-thumb:hover {
    background:
        linear-gradient(
            180deg,
            #ffe55c,
            #d4af37
        );
}
.custom-modal-scroll {
    scrollbar-width: thin;
    scrollbar-color:
        #d4af37
        rgba(255,255,255,0.04);
}
@media (max-width: 768px) {
    .custom-modal-card {
        padding: 14px;
        max-height: 92vh;
    }
    .custom-modal-image {
        border-radius: 12px;
    }
}

.media-modal .custom-image-dialog {
    max-width: none;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.media-modal .custom-image-modal-content {
    width: fit-content;
    background: transparent;
    border: none;
    box-shadow: none;
}

.media-modal .custom-image-modal-body {
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.media-modal .custom-full-image {
    display: block;

    width: auto;
    height: auto;

    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 120px);

    object-fit: contain;

    border-radius: 16px;
    border: 1px solid rgba(255, 215, 0, 0.35);

    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.65),
        0 0 34px rgba(255, 215, 0, 0.16);

    transition: transform 0.15s ease;
    transform-origin: center center;
}

.media-modal .custom-image-modal-footer {
    display: flex;
    justify-content: center;
    border: none;
    padding-top: 18px;
}

@media (max-width: 768px) {
    .media-modal .custom-image-dialog {
        width: 100vw;
        max-width: 100vw;
        height: 100dvh;
        margin: 0;
    }

    .media-modal .custom-image-modal-content {
        width: 100%;
        height: 100dvh;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .media-modal .custom-image-modal-body {
        flex: 1;
        overflow: hidden;
        touch-action: none;
    }

    .media-modal .custom-full-image {
        max-width: calc(100vw - 20px);
        max-height: calc(100dvh - 110px);
        cursor: grab;
        user-select: none;
        -webkit-user-select: none;
        -webkit-user-drag: none;
    }

    .media-modal .custom-full-image:active {
        cursor: grabbing;
    }

    .media-modal .custom-image-modal-footer {
        flex-shrink: 0;
        padding-top: 10px;
        padding-bottom: 14px;
    }
}
.service-card-img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
}

/*стиль градиентного текста для "ВремяРемонта"*/

.gradient-text {
    margin: 0;
    background: linear-gradient(90deg,
        #b8860b,  /* Темно-желтый */
        #8a2be2,  /* Фиолетовый */
        #00bfff,  /* Голубой */
        #ff69b4,  /* Розовый */
        #ff0000   /* Красный */
    );
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold; /* Жирный текст */
    display: inline-block;
    animation: gradientAnimation 4s infinite linear;
}

/* Добавляем анимацию для перелива цветов */
@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
/*Стиль для плавающей кнопки заказать консультацию*/
.floating-consult-btn {
    position: fixed;
    bottom: 85px;
    right: 20px;
    z-index: 1200;
    background: linear-gradient(135deg, #0d6efd, #3b82f6);
    color: white;
    padding: 14px 18px;
    border-radius: 50px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.4);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    }

.floating-consult-btn i {
font-size: 1.4rem;
}

.floating-consult-btn:hover {
transform: translateY(-3px);
box-shadow: 0 12px 30px rgba(13, 110, 253, 0.5);
background: linear-gradient(135deg, #0b5ed7, #2563eb);
}

/* Мобильная версия - делаем компактнее */
@media (max-width: 576px) {
    .floating-consult-btn {
        bottom: 80px;        /* чуть выше нижней панели */
        padding: 12px;
        border-radius: 50%;
        width: 47px;
        height: 50px;
        box-shadow: 0 6px 20px rgba(13, 110, 253, 0.45);
    }

    .floating-consult-btn span {
        display: none;
    }
}

.center-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh; /* Занимает 80% высоты экрана */
}
.delete-card {
    width: 100%;
    max-width: 400px; /* Максимальная ширина карточки */
    margin: 0 auto;
}

/* Стили для формы */
.form-control:focus, .form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Стили для карточек файлов */
.card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Стили для кнопок */
.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Стили для списка файлов */
.list-group-item {
    transition: background-color 0.2s;
}

/* Стили для cropper */
.cropper-view-box,
.cropper-face {
    border-radius: 4px;
}

/* Общие блоки */
.section-dark {
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(6px);
    border-radius: 16px;
    padding: 40px 20px;
    margin-bottom: 40px;
}

/* Карточки */
.glass-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    transition: 0.3s;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* Текст */
.text-soft {
    color: rgba(255,255,255,0.7);
}

/* CTA */
.cta-box {
    background: linear-gradient(135deg, rgba(13,110,253,0.3), rgba(59,130,246,0.3));
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

/* Заголовки */
.section-title {
    color: #fff;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
}