/*
Theme Name:  memorialryb.ru - 2025
Theme URI:  
Description: The original https://memorialryb.ru/  theme.
Version: 2025
Author: alisa
*/

/* CSS Document */


 /* --- ОБЫЧНОЕ НАЧЕРТАНИЕ --- */
@font-face {
  font-family: 'Gilroy'; /* Даем имя нашему шрифтовому семейству */
  font-style: normal;
  font-weight: 400; /* Указываем, что это нормальное начертание (400 = normal) */
  src: url('/wp-content/themes/memorial-2025/fonts/gilroy-medium.ttf') format('truetype'); /* Путь к файлу обычного шрифта */
}

/* --- ЖИРНОЕ НАЧЕРТАНИЕ --- */
@font-face {
  font-family: 'Gilroy'; /* То же самое имя, что и у обычного */
  font-style: normal;
  font-weight: 700; /* Указываем, что это жирное начертание (700 = bold) */
  src: url('/wp-content/themes/memorial-2025/fonts/gilroy-bold.ttf') format('truetype'); /* Путь к файлу жирного шрифта */
}


/* --- очень ЖИРНОЕ НАЧЕРТАНИЕ --- */
@font-face {
  font-family: 'Gilroy'; /* То же самое имя, что и у обычного */
  font-style: normal;
  font-weight: 900; /* Указываем, что это жирное начертание (700 = bold) */
  src: url('/wp-content/themes/memorial-2025/fonts/gilroy-black.ttf') format('truetype'); /* Путь к файлу жирного шрифта */
}

 
        :root {
            --primary-red: #902f29; /* Темно-красный из макета */
            --primary-dark: #581c1c;
            --accent-gold: #ffcb08; /* Золотой цвет текста */
            --bg-gradient: linear-gradient( to top, #000000 0%, #902f29 100%);
        }

        body {
            font-family: 'Gilroy';
            overflow-x: hidden;
            font-size: 20px;
        }
        
      h1, h2 {
      font-size: 36px;
      font-weight: 900;
      text-transform: uppercase;
      text-align: center;
      margin: 30px 0px;
      }  
      h3 {
       font-size: 24px;
      font-weight: 900;
      text-transform: uppercase;
      text-align: center;
       margin: 30px 0px;
      }
      
      .btn-route {
            background-color: #8f3835; /* Темно-красный/коричневый цвет с картинки */
            color: white;
            border: none;
            border-radius: 4px;
            font-weight: 500;
            font-size: 0.9rem;
            transition: background-color 0.2s;
        }

        .btn-route:hover {
            background-color: #722c2a;
            color: white;
        }
        
        /* Выравнивание иконок относительно текста */
        .contact-icon {
            margin-top: 4px; /* Небольшой сдвиг вниз для выравнивания с текстом */
        }
        
        .whatsapp-icon {
            color: #4FCE5D; /* Цвет WhatsApp */
            font-size: 1.1rem;
            vertical-align: middle;
        }
        
 @media only screen and  (min-width: 2000px) { 

.lg100.w-100 {
max-width: 1920px;
    height: auto;
    margin: 0 auto;
}
}


 @media (min-width: 1420px) {
    .container,.container-lg,.container-md,.container-sm,.container-xl,.container-xxl {
        max-width:1420px
    }
}  


        /* --- ШАПКА (ВЕРХНЯЯ ЧАСТЬ) --- */
        .top-header {
            background-color: #fff;
            padding: 10px 0;
            font-size: 0.9rem;
        }
        .logo-text {
           
            font-weight: bold;
            font-size: 1.8rem;
            color: var(--primary-red);
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        
        .logo {
        /*width: 60%; */
        }
        
        .logo-sub {
            color: #000;
            font-size: 20px;
            text-transform: uppercase;
            margin-left: 25px;
             
        }
        .header-info {
            font-size: 18px;
            line-height: 1.2;
            display: flex;
                align-items: center;
                gap: 10px;
        }
        .phone-bold {
            font-weight: 900;
            font-size: 30px;
            color: #000;
            text-decoration: none;
        }
        
        .header-phone {
            line-height: 1.2;
            
        }
        
        .fa-whatsapp:before {
    content: "\f232";
    color: #000;
}

.contf  .fa-whatsapp:before {
    content: "\f232";
    color: #fff;
}

        /* --- НАВИГАЦИЯ (МЕНЮ) --- */
        .main-navbar {
            background-color: var(--primary-red);
            color: white;
            position: relative;
            z-index: 100;
            border-bottom: 1px solid #fff;
        }
        .nav-link {
            color: white !important;
            text-transform: uppercase;
            font-size: 0.8rem;
            padding: 15px 10px !important;
            transition: 0.3s;
             border-bottom: 3px solid var(--primary-red);
        }
        .nav-link:hover, .nav-link.act {
            /*color: var(--accent-gold) !important; */
            border-bottom: 3px solid var(--accent-gold);
        }

        /* --- ПОИСК (ДЕСКТОП) --- */
        .search-trigger {
            cursor: pointer;
            padding: 15px;
        }
        .search-overlay {
            position: absolute;
            top: 100%;
            right: 0;
            width: 300px;
            background: white;
            padding: 10px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.4s ease; /* Плавное всплывание */
            z-index: 200;
        }
        .search-overlay.active {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        /* --- ГЛАВНЫЙ СЛАЙДЕР --- */
        .hero-section {
            background: var(--bg-gradient);
            color: white;
            position: relative;
            min-height: 500px;
            display: flex;
            align-items: center;
            overflow: hidden;
        }
        .hero-title {
            color: var(--accent-gold);
            font-weight: bold;
            font-size: 3rem;
            text-transform: uppercase;
            line-height: 1.1;
            margin-bottom: 20px;
        }
        .hero-btn {
            background-color: #A64444;
            color: white;
            border: none;
            padding: 10px 30px;
            text-transform: uppercase;
            font-size: 0.8rem;
            margin-top: 20px;
            transition: 0.3s;
            text-decoration:none;
        }
        .hero-btn:hover {
            background-color: #c05555;
            color: white;
        }
        
        /* Циферки слайдера (1 | 2 | 3 | 4) */
        .custom-indicators {
            position: absolute;
            bottom: 30px;
            
            display: flex;
            gap: 10px;
            list-style: none;
            padding: 0;
            margin: 0;
            z-index: 2;
        }
        .custom-indicators button {
            background: none;
            border: none;
            color: rgba(255,255,255,0.5);
            font-size: 1rem;
            font-weight: bold;
            padding: 0;
            cursor: pointer;
            transition: 0.3s;
        }
        .custom-indicators button.active {
            color: #fff;
        }
        .custom-indicators li {
            display: flex;
            align-items: center;
        }
        .indicator-divider {
            color: rgba(255,255,255,0.3);
            margin-left: 10px;
        }
        
        /* Изображение в слайдере */
        .hero-image-col {
            position: relative;
            height: 500px;
            margin-top: 30px;
        }
        .hero-img {
            max-height: 100%;
            width: auto;
            /*position: absolute; */
            bottom: 0;
            right: 0;
        }
        
        .gallery-item img {
         width: 95%;
         height: auto;
         border: none !important;
        }

        /* --- СЕКЦИЯ КАРТОЧЕК --- */
        .card-banner {
            background: linear-gradient( to top, #000000 0%, #902f29 100%);;
            color: white;
            overflow: hidden;
            border-radius: 0;
            border: none;
            min-height: 250px;
            justify-content: space-around;
            font-size: 38px;
        }
        
         .card-banner strong {
         font-weight: 900;
          color: #ffcb08;
         }
       
        
     .card-banner    i.fas.fa-phone-alt.me-2 {
    rotate: 90grad;
    color: #ffcb08;
}


.phonecont a {
 color: #000;
 font-weight: 900;
 font-size: 28px;
 text-decoration: none;
}


.phonecont .bi-whatsapp {
 color: #000;
}

table {
width: 100%;
margin: 30px 0px;
font-size: 20px;
 
}

tr th {
background: #902f29;
color: #fff;
font-weight: 600;
padding: 15px;
}

tr td {
padding: 15px;
}

tr td:last-child {
width: 20%; 
}


tr {
 border-bottom: 1px solid #d9d9d9;
}

tr:last-child {
 border-bottom: 1px solid #902f29;
}

 
    

   .card-banner  a {
   text-decoration: none;
   color: #fff;
      font-weight: 900;
   }
        
        .card-title-custom {
            color: var(--accent-gold);
            font-weight: bold;
            text-transform: uppercase;
        }
        .service-card {
            background: linear-gradient( to top, #000000 0%, #902f29 100%);;
            height: 370px;
            position: relative;
            overflow: hidden;
            display: flex;
            align-items: flex-start;
            padding: 20px;
            color: white;
            text-transform: uppercase;
            transition: transform 0.3s;
            cursor: pointer;
            text-decoration: none;
        }
        .service-card:hover {
            transform: scale(1.02);
            z-index: 5;
        }
        
        .service-card h4  {
        margin-top: 30px;
        margin-left: 30px;
        }
        
        .service-card img {
            position: absolute;
            bottom: 0;
            right: 0;
            max-height: 100%;
            object-fit: contain;
        }

        /* --- О КОМПАНИИ --- */
        .about-section {
            padding: 30px 0;
            text-align: center;
        }
        .about-section h2 {
            font-weight: 900;
            text-transform: uppercase;
            margin-bottom: 30px;
        }
        .about-text {
            font-size: 20px;
            color: #000;
            max-width: 800px;
            margin: 0 auto 20px auto;
          /*  text-align: justify; */
            text-align-last: center;
        }

        /* --- ПОДВАЛ --- */
        footer {
            background-color: #000;
            color: #fff;
            padding: 40px 0;
            margin-top: 30px;
        }
        
        
        footer i.bi.bi-clock {
    margin-right: 10px;
}

button.btn.btn-outline-danger {
    color: #fff;
    border: 1px solid #fff;
}
        
        .footer-info {
         display: flex;
    justify-content: flex-end;
    margin: 15px 0px;
        }
        
        .adressf {
           font-weight: 700;
         font-size: 16px;
        }
        
        .phonef {
         text-decoration: none;
         font-weight: 700;
         font-size: 18px;
        }
         
        .logof {
         text-align: center;
        } 
        
        .logof span {
         font-size: 18px;
         color: #fff;
         margin-top: 10px;
         display: block;
        }
        
        .contf {
         line-height: 1.2;
        }
         
          footer a {
            color: #fff;
            }
         
        .fmenu a {
            color: #fff;
            text-decoration: none;
            display: block;
            margin-bottom: 15px;
            font-size: 18px;
    text-transform: uppercase;
        }
        
     .fmenu a:hover   {
        color: var(--accent-gold); 
        }
        
        footer a:hover {
            color: white;
        }


        .copy {
        font-size: 14px;
        }
        /* --- МОБИЛЬНАЯ ВЕРСИЯ И МЕНЮ --- */
        /* Скрываем элементы на разных экранах */
        .desktop-only { display: block; }
        .mobile-header { display: none; }

        /* Offcanvas (Мобильное меню) стилизация */
        .offcanvas {
            background-color: var(--primary-red);
            color: white;
        }
        .offcanvas-header .btn-close {
            filter: invert(1); /* Белый крестик */
        }
        .mobile-nav-link {
            color: white;
            font-size: 1.2rem;
            padding: 10px 0;
            display: block;
            text-transform: uppercase;
            text-decoration: none;
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }
        .mobile-contacts {
            margin-top: 30px;
            padding-top: 20px;
            border-top: 1px solid rgba(255,255,255,0.3);
        }
        
        
        .mobile-contacts .phone-bold {
         color: #fff;
        }
        
        .mobile-search {
            margin-top: 20px;
        }

        /* МЕДИА ЗАПРОСЫ */
        @media (max-width: 991px) {
        
        
        .service-card {
        flex-direction: column;
        height: 154px;
        }
        
        .service-card img {
       /* position: relative;  */
        width: 70%;
        right: -10px;
        }
        
        .about-section {
    padding: 0px 0;
    text-align: center;
}
        
        .service-card h4 {
    margin-top: 10px;
    margin-left: 10px;
}
        
         .footer-info {
         justify-content: center;
         }
             .adressf {
             text-align: center;
             }
             
             .contf {
    text-align: center;
}

.fmenu, .copy {
 text-align: center;
}

.card-banner {
font-size: 28px;
}

.mb-4.fmenu {
margin-bottom: 0px !important;
}
        
            .desktop-header-info { display: none; } /* Скрываем верхнюю инфо строку на планшетах/моб */
            .main-navbar { display: none; } /* Скрываем обычное меню */
            
            .col-md-6 {
            margin-bottom: 15px;
            }
            
            tr td, tr th {
            padding: 10px;
            }
            
            tr td:last-child {
    width: 30%;
}
            
            table {
 
    font-size: 16px;
}

body {
 font-size: 18px;
}

h1, h2 {
    font-size: 26px;
 
}
            
            .mobile-header {
                display: flex;
                justify-content: space-between;
                align-items: center;
                padding: 10px 15px;
                background: white;
                box-shadow: 0 2px 5px rgba(0,0,0,0.1);
                position: sticky;
                top: 0;
                z-index: 1000;
            }
            .hamburger-btn {
                background: white;
                color: var(--primary-red);
                border: none;
                padding: 8px 12px;
                border-radius: 4px;
                font-size: 30px;
            }
            
            /* Адаптация слайдера */
            .hero-title { font-size: 30px; 
               margin-bottom: 0px;
            }
            
            .hero-title-block {
            height: 50px;
            padding-top: 20px;
            }
            .hero-section { min-height: 300px; text-align: left; }
            .custom-indicators { left: 50%; transform: translateX(-50%); bottom: 10px; }
           /* .hero-image-col { display: none; }  Скрываем картинку памятника на моб для экономии места или можно уменьшить */
                      
                        .hero-image-col {
                        height: 250px;
                        overflow: hidden;
                        aspect-ratio: 3 / 4;
                        }
                      .hero-img {
                        object-fit: cover;
                      height: 100%;
                      }
                      
                      .hero-btn {
                      
                      display: none;
                      }
            .card-banner { text-align: center; 
                    margin-bottom: 5px;
            }
            .card-banner img { display: none; } /* Скрываем человека в костюме на узких экранах */
            
            .logo-text img {
             width: 95%;
            }
            
            .about-text {
            font-size: 16px;
            }
        }
        
        
          .cookie-popup {
        display: none;
        left: 0px !important;
        right: 0px !important;
        font-size: 12px !important;
        padding: 10px !important;
        width: 100%;
        position: fixed;
        z-index: 100;
        background: #fff;
        text-align: center;
        bottom: 0;
    }

    .cookie-popup p {
        margin: 0;
        font-size: 14px;
    }

    .cookie-popup button {
        margin-top: 10px;
        padding: 5px 10px;
        background-color: #ff0909;
        color: #fff;
        border: none;
        border-radius: 3px;
        cursor: pointer;
    }