:root {
    --primary-color: #2c3e50;
    --secondary-color: #e67e22;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    line-height: 1.6;
}


@font-face {
    font-family: 'CyrillicOld';
    src: url('/static/fonts/CyrillicOld.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

.brand-font {
    font-family: 'CyrillicOld', sans-serif;
}

.title-main, .title-sub {
    font-family: 'CyrillicOld', sans-serif;
}

.hero-description {
    font-size: 1.5rem;
}

/* Навигация */
.navbar-brand {
    font-family: 'CyrillicOld', sans-serif;
    font-size: 25px;
    font-weight: 700;
    color: var(--secondary-color) !important;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--secondary-color);
}

/* Герой секция */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3)), url('/static/hero-background.jpg');
    background-position: center 58%;
    background-repeat: no-repeat;
    /*background-image: url('/static/hero-background.jpg');*/
    background-size: cover;
}


/* Hero CTA Block */
.hero-cta {
    background: rgba(220, 220, 220, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(50, 150, 50, 0.2);
    border-radius: 20px;
    padding: 1.5rem;
    margin: 2rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    animation: pulseGlow 2s infinite;
}

.cta-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.cta-icon {
    font-size: 2rem;
    color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
    padding: 1rem;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-text {
    display: flex;
    flex-direction: column;
}

.cta-label {
    font-size: 0.9rem;
    color: #f59010;
    margin-bottom: 0.25rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.cta-phone {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f59010;
    text-decoration: none;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.cta-phone:hover {
    color: #27ae60;
    text-decoration: none;
    transform: translateY(-1px);
}

.cta-button {
    flex-shrink: 0;
}

.btn-call {
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(45deg, #27ae60, #2ecc71);
    border: none;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-call:hover {
    background: linear-gradient(45deg, #219653, #27ae60);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
    color: white;
}

/* Анимация пульсации для CTA */
@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 rgba(39, 174, 96, 0.1);
    }
    50% {
        box-shadow: 0 0 20px rgba(39, 174, 96, 0.3);
    }
    100% {
        box-shadow: 0 0 0 rgba(39, 174, 96, 0.1);
    }
}

/* Адаптивность для CTA */
@media (max-width: 768px) {
    .hero-cta {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    .cta-content {
        flex-direction: column;
        text-align: center;
    }

    .cta-phone {
        font-size: 1.3rem;
    }

    .btn-call {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        margin: 1.5rem 0;
    }

    .cta-phone {
        font-size: 1.2rem;
    }

    .cta-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .btn-call {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Дополнительные стили для мобильных устройств */
@media (max-width: 360px) {
    .cta-phone {
        font-size: 1.1rem;
    }

    .hero-cta {
        padding: 0.8rem;
    }
}





/* Заголовки секций */
.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* Карточки услуг */
.service-card {
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Карточки материалов */
.material-card {
    width: 100%;
    height: 100%;
    background: white;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.material-card:hover {
    transform: translateY(-5px);
}

.material-img-container {
    height: 250px;
    overflow: hidden;
    border-radius: 5px;
    position: relative;
}

.material-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.material-info {
    padding: 20px;
}

/* Materials Slider Specific */
.materials-swiper .swiper-slide {
    height: auto;
}


/* Guarantee Banner */
.guarantee-banner {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 40px 0;
    margin: 40px 0 60px 0;
    position: relative;
    overflow: hidden;
}

.guarantee-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect width="100" height="100" fill="%232c3e50"/><path d="M0,0 L100,100 M100,0 L0,100" stroke="%2334495e" stroke-width="1"/></svg>');
    opacity: 0.1;
}

.guarantee-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    position: relative;
    z-index: 2;
}

.guarantee-icon {
    font-size: 4rem;
    color: #e67e22;
    background: rgba(230, 126, 34, 0.1);
    padding: 25px;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.guarantee-text {
    flex: 1;
}

.guarantee-text h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.guarantee-years {
    color: #e67e22;
    font-weight: 800;
}

.guarantee-text p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0;
    max-width: 600px;
}

.guarantee-actions {
    flex-shrink: 0;
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: white;
    color: #2c3e50;
    border-color: white;
    transform: translateY(-2px);
}

/* Анимация появления */
.guarantee-banner {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.guarantee-banner.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Адаптивность */
@media (max-width: 992px) {
    .guarantee-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .guarantee-text h3 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .guarantee-banner {
        padding: 40px 0;
        margin: 40px 0;
    }

    .guarantee-icon {
        font-size: 3rem;
        width: 80px;
        height: 80px;
        padding: 20px;
    }

    .guarantee-text h3 {
        font-size: 1.5rem;
    }

    .guarantee-text p {
        font-size: 1rem;
    }
}

/* Альтернативный вариант с иконками по бокам */
.guarantee-banner.with-pattern::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 150px;
    height: 150px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><polygon points="50,0 100,50 50,100 0,50" fill="%23e67e22" opacity="0.1"/></svg>');
    background-size: contain;
    z-index: 1;
}

.guarantee-banner.with-pattern::before {
    content: '';
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 120px;
    height: 120px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="45" fill="%23e67e22" opacity="0.1"/></svg>');
    background-size: contain;
    z-index: 1;
}

/*.material-img {*/
/*    height: 200px;*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*    color: white;*/
/*    font-weight: bold;*/
/*}*/

/* Карточки работ - портфолио */
.portfolio-card {
    transition: transform 0.3s;
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.portfolio-card:hover {
    transform: translateY(-5px);
}
.portfolio-filter {
    margin-bottom: 30px;
}
.portfolio-item {
    margin-bottom: 10px;
    transition: transform 0.3s;
    cursor: pointer;
    display: block;
}
.portfolio-item:hover {
    transform: translateY(-5px);
}
.portfolio-img-container {
    height: 250px;
    overflow: hidden;
    border-radius: 5px;
    position: relative;
}
.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.portfolio-item:hover .portfolio-img {
    transform: scale(1.05);
}
.portfolio-img-count {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
}

/* Цветовые акценты */
.text-orange {
    color: var(--secondary-color) !important;
}

.bg-orange {
    background-color: var(--secondary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #1a252f;
    border-color: #1a252f;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Футер */
footer a.text-orange:hover {
    color: #ff9736 !important;
}

/* Breadcrumb */
.breadcrumb {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-radius: 10px;
}

.breadcrumb-item a {
    color: #e67e22;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* Адаптивность */
@media (max-width: 768px) {
    .hero-section .display-4 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }
}




/* ----------------------------------------  Floating Call Card */
.floating-call-card {
    position: fixed;
    bottom: 30px;
    right: 150px;
    z-index: 1000;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    animation: slideInRight 0.5s ease-out;
    max-width: 320px;
}

.call-card-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.call-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.call-icon {
    font-size: 1.5rem;
    color: #e67e22;
    background: rgba(230, 126, 34, 0.1);
    padding: 10px;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.call-text {
    display: flex;
    flex-direction: column;
}

.call-label {
    font-size: 0.8rem;
    color: #bdc3c7;
    margin-bottom: 2px;
}

.call-number {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.call-number:hover {
    color: #e67e22;
    text-decoration: none;
}

.btn-call-now {
    background: linear-gradient(45deg, #e67e22, #f39c12);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 10px 15px;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-call-now:hover {
    background: linear-gradient(45deg, #f39c12, #e67e22);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.3);
    color: white;
}

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

/* Анимация пульсации для привлечения внимания */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(230, 126, 34, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(230, 126, 34, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(230, 126, 34, 0);
    }
}

.floating-call-card {
    animation: pulse 2s infinite 3s;
}

/* Адаптивность */
@media (max-width: 768px) {
    .floating-call-card {
        bottom: 20px;
        right: 20px;
        left: 20px;
        max-width: none;
    }

    .call-card-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .call-info {
        flex-direction: column;
        text-align: center;
    }

    .btn-call-now {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .floating-call-card {
        bottom: 15px;
        right: 15px;
        left: 15px;
        padding: 12px;
    }

    .call-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .call-number {
        font-size: 1rem;
    }
}

/* Альтернативный вариант - прикрепленная к низу плашка */
.floating-call-card.bottom-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 0;
    max-width: none;
    animation: slideInUp 0.5s ease-out;
}

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

/* Для контента добавляем отступ снизу, чтобы не перекрывался */
.has-floating-call-card {
    padding-bottom: 100px;
}




/* Inline Call Card */
.inline-call-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 20px;
    border-left: 4px solid #e67e22;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.inline-call-card .call-card-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.inline-call-card .call-info {
    flex: 1;
    min-width: 250px;
}

.inline-call-card .call-description {
    display: block;
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 5px;
}

.inline-call-card .call-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.inline-call-card .btn-outline-primary {
    border-color: #e67e22;
    color: #e67e22;
}

.inline-call-card .btn-outline-primary:hover {
    background: #e67e22;
    color: white;
}

@media (max-width: 768px) {
    .inline-call-card .call-card-content {
        flex-direction: column;
        text-align: center;
    }

    .inline-call-card .call-actions {
        width: 100%;
        justify-content: center;
    }

    .inline-call-card i {
        display: none;
    }

    .inline-call-card button {
        display: none;
    }

}

/* Footer Styles */
.footer-title {
    color: #e67e22;
    font-weight: 700;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #e67e22;
    border-radius: 1px;
}

/* Contact Items */
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: rgba(230, 126, 34, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e67e22;
    flex-shrink: 0;
}

.contact-info {
    flex: 1;
}

.contact-label {
    display: block;
    font-size: 0.8rem;
    color: #bdc3c7;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.contact-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #e67e22;
    transition: width 0.3s ease;
}

.contact-link:hover {
    color: #e67e22;
    transform: translateX(5px);
}

.contact-link:hover::after {
    width: 100%;
}

/* Phone link specific */
.contact-link[href^="tel:"] {
    font-size: 1.1rem;
}

/* Email link specific */
.contact-link[href^="mailto:"] {
    word-break: break-all;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    background: #e67e22;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.3);
}

/* Working Hours */
.working-hours {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    border-left: 3px solid #e67e22;
}

.time-item {
    display: flex;
    align-items: center;
    padding: 5px 0;
}

/* Footer Call CTA */
.btn-call-footer {
    background: linear-gradient(45deg, #e67e22, #f39c12);
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
}

.btn-call-footer:hover {
    background: linear-gradient(45deg, #f39c12, #e67e22);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.4);
    color: white;
}

/* Footer Links */
.footer-links .footer-link {
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 3px 0;
}

.footer-links .footer-link:hover {
    color: #e67e22;
    transform: translateX(5px);
}

.footer-links .footer-link i {
    transition: transform 0.3s ease;
}

.footer-links .footer-link:hover i {
    transform: translateX(3px);
}

/* Footer Bottom */
.footer-bottom-link {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-bottom-link:hover {
    color: #e67e22;
}

/* Анимация появления футера */
footer {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .footer-title {
        text-align: center;
    }

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .contact-item {
        text-align: center;
        flex-direction: column;
        gap: 10px;
    }

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

    .working-hours {
        text-align: center;
    }

    .time-item {
        justify-content: center;
    }

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

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

@media (max-width: 576px) {
    .contact-link[href^="tel:"] {
        font-size: 1rem;
    }

    .btn-call-footer {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .social-link {
        width: 35px;
        height: 35px;
    }
}