:root {
    --primary-color: #336699;
    --secondary-color: #000;
    --light-color: #99cccc;
}

/* Плавная прокрутка для всего сайта */
html {
    scroll-behavior: smooth;
}

/* Отступ для секций чтобы не перекрывались навигацией */
section {
    scroll-margin-top: 80px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* Навигация с логотипом */
.brand-subtitle {
    font-size: 0.7rem;
    opacity: 0.8;
    margin-left: 10px;
    font-weight: normal;
}

.nav-cta .btn {
    white-space: nowrap;
}
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2d2d2d 100%) !important;
    padding: 0.5rem 0;
    height: 115px;
    display: block;
    padding-top: 0px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    color: white !important;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
    margin-right: 10px;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-link {
    color: white !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: rgb(212, 212, 212) !important;
}
.slider-img {
    top: 0px;
    width: 100vw;
    height: 680px;
    object-fit: cover;
    position: absolute;
}
.hero-section {
    background-size: cover;
    color: black;
    padding: 120px 0;
    text-align: left;
    position: relative;
    height: 680px;
    display: flex;
    align-items: center;
    margin-top: 115px;
}

.section-title {
    position: relative;
    margin-bottom: 30px;
    padding-bottom: 15px;
    font-weight: 700;
    color: #000;
     font-size: 45px;
}

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

/* ИСПРАВЛЕНИЕ: Увеличиваем отступ между карточками до 45px */
.door-card {
    transition: transform 0.3s;
    margin-bottom: 45px;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.door-img-container {
    height: 250px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

.door-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    transition: transform 0.3s ease;
}

.door-card:hover .door-img {
    transform: scale(1.05);
}

.card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 20px;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    min-height: 52px;
    display: flex;
    align-items: center;
}

.card-text {
    flex-grow: 1;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
}

.price {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.btn-primary {
    background: linear-gradient(90deg, rgba(51, 101, 150, 1) 0%, rgba(47, 68, 88, 1) 98%);
    border-color: #30465a;
    margin-top: auto;
}

.btn-primary:hover {
    background: radial-gradient(circle, rgba(51, 101, 150, 1) 0%, rgba(47, 68, 88, 1) 98%);
    border-color: #30465a;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-info {
    padding: 30px;
    border-radius: 10px;
}

/* Футер с логотипом */
/* Стили для нового футера */
footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2d2d2d 100%) !important;
}

.footer-brand {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 40px;
    width: auto;
}

.footer-contacts p {
    transition: color 0.3s ease;
}

.footer-contacts p:hover {
    color: var(--light-color) !important;
}

footer a.text-white-50:hover {
    color: white !important;
    padding-left: 5px;
}

.social-links .btn {
    transition: all 0.3s ease;
    border-radius: 20px;
    padding: 0.25rem 0.75rem;
}

.social-links .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.border-top {
    border-color: #495057 !important;
}

/* Адаптивность футера */
@media (max-width: 768px) {
    footer .col-lg-4,
    footer .col-lg-3,
    footer .col-lg-2 {
        margin-bottom: 2rem;
    }
    
    .footer-brand {
        justify-content: center;
        text-align: center;
    }
    

    
    .social-links {
        text-align: center;
    }
    
    .payment-methods {
        text-align: center;
    }
}

/* Стили для кнопок в карточках */
.d-flex.gap-2 {
    margin-top: auto;
}

.btn-outline-secondary {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    white-space: nowrap;
}

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

/* Стили для модальных окон с описанием */
.modal-body img {
    max-height: 400px;
    object-fit: contain;
    width: 100%;
}

.modal-body h6 {
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.modal-body ul.list-unstyled li {
    padding: 0.25rem 0;
    border-bottom: 1px solid #eee;
}

.modal-body ul.list-unstyled li:last-child {
    border-bottom: none;
}

/* ИСПРАВЛЕНИЕ: Добавляем отступы 45px для строк и колонок */
.row {
    margin: 0 -15px;
}

.col-md-6, .col-lg-4 {
    padding: 0 15px;
    margin-bottom: 45px; /* Увеличиваем отступ снизу для колонок до 45px */
}

/* Адаптивность */
@media (max-width: 768px) {
    .hero-section {
        padding: 100px 0 60px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .door-img-container {
        height: 200px;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .brand-text {
        font-size: 1.3rem;
    }
    
    .footer-logo {
        justify-content: center;
        margin-bottom: 1rem;
    }
    
    .footer-logo-img {
        height: 35px;
    }
    
    .card-body {
        padding: 15px;
    }
    
    .d-flex.gap-2 {
        flex-direction: column;
    }
    
    .d-flex.gap-2 .btn {
        margin-bottom: 0.5rem;
    }
    
    section {
        scroll-margin-top: 60px;
    }
    
    /* Адаптивные отступы для мобильных */
    .col-md-6, .col-lg-4 {
        margin-bottom: 30px;
    }
    
    .door-card {
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 80px 0 40px;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .contact-info {
        padding: 20px;
    }
    
    .logo-img {
        height: 35px;
    }
    
    .brand-text {
        font-size: 1.2rem;
    }
    
    .navbar-brand {
        margin-right: 0;
    }
    
    .door-img-container {
        height: 180px;
    }
    
    .card-title {
        font-size: 1rem;
        min-height: 48px;
    }
    
    .card-text {
        font-size: 0.85rem;
    }
    
    .modal-dialog {
        margin: 0.5rem;
    }
    
    /* Меньшие отступы для очень маленьких экранов */
    .col-md-6, .col-lg-4 {
        margin-bottom: 25px;
    }
    
    .door-card {
        margin-bottom: 25px;
    }
}

.modal-header {
    border-bottom: 2px solid var(--primary-color);
}

.modal-footer {
    border-top: 1px solid #dee2e6;
}

.btn-group-vertical .btn {
    margin-bottom: 0.5rem;
}

.btn-group-vertical .btn:last-child {
    margin-bottom: 0;
}

/* Стили для улучшения читаемости текста */
.modal-body {
    line-height: 1.6;
}

.modal-body p {
    margin-bottom: 1rem;
}

.modal-body strong {
    color: var(--primary-color);
}

/* Плавная анимация для модальных окон */
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
}

/* Стили для скролла в модальных окнах */
.modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

/* Кастомный скроллбар */
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Удаление полосы под "О нас" */
.section-title.no-underline:after {
    display: none;
}

/* Стили для преимуществ */
.bg-light {
    background-color: #f8f9fa !important;
}

.display-4 {
    margin-bottom: 15px;
}

.text-primary {
    color: var(--primary-color) !important;
}
.display-4 {
    font-size: 48px;
}
@media (max-width: 1300px) {
.display-4 {
    font-size: 36px;
}
}
/* Вариант с легким полупрозрачным фоном */
@media (max-width: 991.98px) {
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(56, 56, 56, 0.95) !important;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        z-index: 1000;
        padding: 10px 0;
    }
    
    .navbar-nav {
        background: transparent !important;
    }
    
    .nav-item {
        background: transparent !important;
        margin: 0;
    }
    
    .nav-link {
        color: white !important;
        background: transparent !important;
        padding: 15px 20px !important;
        border: none !important;
        text-align: center;
        font-size: 1.1rem;
        transition: all 0.3s ease;
    }
    
    .nav-link:hover {
        background: rgba(255, 255, 255, 0.1) !important;
        color: white !important;
    }
}
/* Стили для поиска */
.search-wrapper {
    position: static;
}

@media (min-width: 992px) {
    .search-wrapper {
        position: relative;
    }
}

.btn-search-icon {
    color: white;
    background: none;
    border: none;
    font-size: 1.2rem;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.btn-search-icon:hover {
    color: var(--light-color);
}

/* Исправленное позиционирование выпадающего поиска */
.search-expandable {
    position: absolute;
    top: 100%;
    right: 0;
    width: 400px;
    max-width: 90vw;
    background: var(--primary-color);
    padding: 1rem;
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 1030;
    margin-top: 0.5rem;
}

.search-expandable.show {
    display: block;
}

/* Контейнер для поля поиска */
.search-container {
    position: relative;
    width: 100%;
}

.search-input {
    padding-right: 45px;
    border: 1px solid #495057;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 25px;
    width: 100%;
}

.search-input-mobile {
    padding-right: 45px;
    border: 1px solid #495057;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 25px;
    width: 100%;
}

.search-input::placeholder,
.search-input-mobile::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-input:focus,
.search-input-mobile:focus {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    border-color: var(--light-color);
    box-shadow: 0 0 0 0.2rem rgba(245, 245, 220, 0.25);
}

/* Кнопки поиска */
.btn-search-close {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 5px;
    transition: color 0.3s ease;
}

.btn-search-close:hover {
    color: var(--light-color);
}

.btn-search-mobile {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 5px 10px;
    transition: color 0.3s ease;
}

.btn-search-mobile:hover {
    color: var(--light-color);
}

/* Результаты поиска */
.search-results {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1001;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    margin-top: 0.25rem;
}

.search-results.show {
    display: block;
}

.search-result-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #dee2e6;
    cursor: pointer;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
    transition: background-color 0.3s ease;
}

.search-result-item:hover {
    background-color: #f8f9fa;
    text-decoration: none;
    color: var(--primary-color);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-image {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-right: 1rem;
    border-radius: 0.25rem;
    flex-shrink: 0;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-price {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.search-result-type {
    color: #6c757d;
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.no-results {
    padding: 1rem;
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 991.98px) {
    .navbar-collapse {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(56, 56, 56, 0.98);
        backdrop-filter: blur(10px);
        padding: 1rem;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        z-index: 1020;
    }
    
    .search-expandable {
        width: calc(100vw - 2rem);
        max-width: none;
        right: 1rem;
        left: 1rem;
    }
    
    .search-container {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .search-expandable {
        width: calc(100vw - 1rem);
        right: 0.5rem;
        left: 0.5rem;
    }
    
    .search-result-item {
        padding: 0.5rem 0.75rem;
    }
    
    .search-result-image {
        width: 40px;
        height: 40px;
        margin-right: 0.75rem;
    }
    
    .search-result-title {
        font-size: 0.85rem;
    }
    
    .search-result-price {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .search-expandable {
        padding: 0.75rem;
    }
    
    .search-input,
    .search-input-mobile {
        padding-right: 40px;
        font-size: 0.9rem;
    }
    
    .search-result-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .search-result-image {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .search-result-info {
        width: 100%;
    }
}

/* Дополнительные утилиты */
.position-relative {
    position: relative;
}

.z-index-1030 {
    z-index: 1030;
}

/* Анимация появления */
.search-expandable {
    animation: slideDown 0.3s ease;
}

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

.search-results {
    animation: fadeIn 0.2s ease;
}

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

.feedback {
    padding: 45px 33px;
    box-shadow: 0px 6px 32px rgba(0, 0, 0, 0.05), 0px 17px 26px rgba(0, 0, 0, 0.02), 0px 0px 11px rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.feedback2 {
    padding: 45px 33px;
    box-shadow: 0px 6px 32px rgba(0, 0, 0, 0.05), 0px 17px 26px rgba(0, 0, 0, 0.02), 0px 0px 11px rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: start;
}
.br-20 {
    border-radius: 20px;
}

.goods {
    padding: 30px 15px;
    box-shadow: 0px 6px 32px rgba(0, 0, 0, 0.05), 0px 17px 26px rgba(0, 0, 0, 0.02), 0px 0px 11px rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.about-us {
    font-size: 18px;
}

.searchbg {
    background-image: url("images/search2.png");
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 20px;
        height: 100%;
        background-position: 50% 45%;
}
.brand-text {
    background: linear-gradient(135deg, #b5dcec, #44b4cb, #3492a7);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
a {
    color: #326290;
}
.cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    max-height: 300px;
}
   @media (min-width: 1200px) {
.container {
    max-width: 1040px;
}
}
@media (min-width: 1300px) {
 .container {
    max-width: 1240px!important;
}
}
@media (min-width: 1400px) {
.container {
    max-width: 1320px!important;
}
}
   @media (min-width: 1500px) {
 .container {
    max-width: 1440px!important;
}
}
.topbar {
    background: #2A2C38;
    padding: 12px 0;
    font-size: 14px;
    min-height: 40px;
    width: 100%;
}
.nav-item:last-child .nav-link{
    padding: 0.5rem 0rem 0.5rem 1rem!important;
}
html, body{
    overflow-x: hidden;
}
@media (max-width: 992px) {
   .nav-item:last-child .nav-link{
    padding: 0.5rem 1rem!important;
} 
.navbar {
    padding: 0.5rem 0;
    height: 70px;
    padding-top: 0.5rem;
}
.hero-section {
    height: calc(100vh - 70px);
    margin-top: 70px;
}
.nav-link, .nav-item p {
        color: white !important;
        background: transparent !important;
        padding: 10px 20px !important;
        border: none !important;
        text-align: left;
        font-size: 1rem;
    }
    .hero-section {
align-items: baseline;
    text-align: center;

}.slider-img {
    top: -25px;
    height: 600px;
    object-position: 94%;
}
}
.video-container {
  position: relative;
  width: 100%;
}

.sound-button {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
}

.sound-button i {
  color: white;
  font-size: 16px;
}

.sound-button:hover {
  background-color: rgba(0, 0, 0, 0.7);
}
