/* Trandora - Вендинговые автоматы Necta */
/* Версия только со светлой темой */

/* ===== ПЕРЕМЕННЫЕ ===== */
:root {
    /* Глубокая насыщенная коричневая палитра - очень темные оттенки */
    --primary-color: #4A2400; /* Очень темный и насыщенный кофейный */
    --secondary-color: #6B3400; /* Коричневый (немного светлее основного) */
    --accent-color: #C55A11; /* Яркий терракотовый акцент */
    --light-color: #FFFFFF; /* Белый фон */
    --dark-color: #2D1B0A; /* Почти черный с коричневым оттенком */
    --text-color: #333333; /* Темно-серый для текста */
    --border-color: #E0D7D0; /* Светлый бежевый для границ */
    --shadow: 0 4px 12px rgba(74, 36, 0, 0.08);
    --transition: all 0.3s ease;
    
    /* Дополнительные оттенки */
    --coffee-light: #A67C52;
    --coffee-medium: #6B4F35;
    --coffee-dark: #3D2C1F;
    --light-brown: #F5F1ED; /* Цвет для фона секций */
    --footer-color: #4A2400;
    
    /* Новые переменные */
    --primary-light: rgba(74, 36, 0, 0.1);
    --primary-dark: #3A1C00;
    --success-color: #28a745;
    --shadow-light: 0 2px 8px rgba(74, 36, 0, 0.05);
    --shadow-medium: 0 8px 25px rgba(74, 36, 0, 0.12);
    --shadow-heavy: 0 15px 35px rgba(74, 36, 0, 0.15);
}

/* ===== БАЗОВЫЕ СТИЛИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    padding-top: 76px;
    background-color: white;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto Slab', serif;
    font-weight: 700;
    color: var(--coffee-dark);
    line-height: 1.3;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* ===== УТИЛИТЫ ===== */
.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
    font-size: 2.5rem;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.text-center .section-title:after {
    left: 50%;
    transform: translateX(-50%);
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.5;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-white {
    color: white !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-light {
    background-color: var(--light-brown) !important;
}

.bg-dark {
    background-color: var(--primary-color) !important;
}

.bg-primary-light {
    background-color: var(--primary-light) !important;
}

.rounded {
    border-radius: 12px !important;
}

.rounded-circle {
    border-radius: 50% !important;
}

.shadow-sm {
    box-shadow: var(--shadow-light) !important;
}

.shadow {
    box-shadow: var(--shadow) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-heavy) !important;
}

.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

.justify-content-center {
    justify-content: center;
}

.position-relative {
    position: relative;
}

.position-absolute {
    position: absolute;
}

/* ===== КНОПКИ ===== */
.btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(74, 36, 0, 0.15);
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 14px 35px;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.875rem;
}

/* ===== НАВИГАЦИЯ ===== */
.navbar {
    transition: var(--transition);
    padding: 18px 0;
    background-color: white !important;
    border-bottom: 1px solid rgba(74, 36, 0, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 12px 0;
    background-color: white !important;
}

.navbar-brand {
    font-size: 1.8rem;
    letter-spacing: 1px;
    color: var(--primary-color) !important;
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    margin: 0 8px;
    color: var(--text-color) !important;
    transition: var(--transition);
    padding: 8px 12px !important;
    border-radius: 6px;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    background-color: rgba(74, 36, 0, 0.05);
}

.navbar-nav .btn-primary {
    margin-left: 10px;
}

.navbar-toggler {
    border-color: rgba(74, 36, 0, 0.2);
    padding: 8px 10px;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2874, 36, 0, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 1.2em;
    height: 1.2em;
}

/* ===== HERO СЕКЦИЯ ===== */
.hero-section {
    background-color: white;
    padding: 100px 0 80px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 70%;
    height: 150%;
    background: linear-gradient(135deg, rgba(74, 36, 0, 0.03) 0%, rgba(74, 36, 0, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    animation: fadeIn 1s ease-out forwards;
}

.hero-section .lead {
    margin-bottom: 2rem;
    animation: slideUp 0.8s ease-out forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.hero-buttons {
    animation: slideUp 0.8s ease-out forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.hero-features {
    animation: fadeIn 1s ease-out forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

.hero-image {
    border-radius: 16px;
    box-shadow: var(--shadow-heavy);
    animation: float 6s ease-in-out infinite;
}

.floating-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(74, 36, 0, 0.2);
    animation: float 4s ease-in-out infinite;
    z-index: 2;
}

.floating-badge i {
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0 60px;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2.3rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .floating-badge {
        bottom: 10px;
        right: 10px;
        padding: 8px 12px;
    }
}

/* ===== АНИМАЦИИ ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out forwards;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* ===== СЕКЦИИ ОБЩИЕ ===== */
section {
    padding: 80px 0;
}

section.bg-light {
    padding: 100px 0;
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    section.bg-light {
        padding: 70px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* ===== О КОМПАНИИ ===== */
#about img {
    border-radius: 16px;
    box-shadow: var(--shadow-heavy);
}

#about .list-unstyled li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}

#about .list-unstyled li i {
    margin-top: 3px;
    flex-shrink: 0;
}

/* ===== МОДЕЛИ РАБОТЫ ===== */
.model-card {
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    background: white;
    position: relative;
    overflow: hidden;
    height: 100%;
    border-radius: 16px;
}

.model-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--accent-color);
}

.model-number {
    font-size: 3rem;
    font-weight: 700;
    color: rgba(74, 36, 0, 0.08);
    line-height: 1;
    font-family: 'Roboto Slab', serif;
}

.model-card h4 {
    color: var(--coffee-dark);
    margin-bottom: 1rem;
}

.model-card .list-unstyled li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}

.model-card .list-unstyled li i {
    margin-top: 3px;
    flex-shrink: 0;
    color: var(--success-color);
}

.badge.bg-primary {
    background-color: var(--primary-color) !important;
    color: white !important;
    padding: 8px 16px;
    font-weight: 500;
    border-radius: 20px;
    font-size: 0.875rem;
}

/* ===== ПРЕИМУЩЕСТВА NECTA ===== */
#necta .d-flex {
    margin-bottom: 2rem;
}

#necta .d-flex:last-child {
    margin-bottom: 0;
}

#necta .flex-shrink-0 i {
    font-size: 2.5rem;
}

#necta .bg-light {
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

#necta .list-unstyled li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

#necta .list-unstyled li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.border-top {
    border-top: 1px solid var(--border-color) !important;
}

/* ===== КАСТОМИЗАЦИЯ ===== */
.feature-box {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.feature-box:hover {
    box-shadow: var(--shadow-medium);
    transform: translateX(5px);
    border-left-color: var(--accent-color);
}

.feature-box h5 {
    color: var(--coffee-dark);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.feature-box h5 i {
    margin-right: 10px;
}

#customization img {
    border-radius: 16px;
    box-shadow: var(--shadow-heavy);
}

/* ===== ФОРМА ЗАЯВКИ ===== */
#order {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

#order::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none"/><path d="M0,50 Q25,40 50,50 T100,50" stroke="rgba(255,255,255,0.05)" stroke-width="2" fill="none"/></svg>');
    opacity: 0.3;
}

#order h2,
#order p,
#order li,
#order .text-white {
    color: white !important;
    position: relative;
    z-index: 1;
}

#order .bi-check-circle {
    color: var(--accent-color) !important;
}

#order .card {
    border-radius: 16px;
    border: none;
    position: relative;
    z-index: 1;
}

#order .form-control,
#order .form-select {
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: var(--transition);
    background-color: white;
}

#order .form-control:focus,
#order .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(74, 36, 0, 0.1);
    outline: none;
}

#order .d-flex.align-items-center {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

#order .d-flex.align-items-center a {
    font-size: 1.25rem;
}

/* ===== КОНТАКТЫ ===== */
#contacts {
    background-color: var(--light-brown);
}

.contact-card {
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: none;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy) !important;
}

.contact-item {
    transition: transform 0.2s ease;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
}

.contact-item:hover {
    transform: translateX(5px);
    background-color: rgba(255, 255, 255, 0.5);
}

.contact-icon {
    transition: all 0.3s ease;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-light);
}

.contact-item:hover .contact-icon {
    background-color: var(--primary-color);
}

.contact-item:hover .contact-icon i {
    color: white !important;
}

.contact-item h6 {
    color: var(--coffee-dark);
    margin-bottom: 5px;
}

.contact-item a {
    color: var(--text-color);
    font-weight: 500;
}

.contact-item a:hover {
    color: var(--primary-color);
}

.social-icon {
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
}

.social-icon:hover {
    background-color: var(--coffee-dark);
    transform: translateY(-3px);
    color: white;
}

.map-container {
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    min-height: 500px;
}

.map-overlay {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-light);
}

.map-overlay h6 {
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.map-overlay h6 i {
    margin-right: 8px;
}

.alert-primary-light {
    background-color: var(--primary-light);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    color: var(--coffee-dark);
}

.alert-primary-light i {
    color: var(--primary-color);
}

#contacts .form-control-lg {
    padding: 15px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    font-size: 1rem;
}

#contacts .form-control-lg:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(74, 36, 0, 0.1);
}

/* Исправления для карты контактов */
#contacts .card-body.p-0 {
    height: 100%;
}

#contacts iframe {
    border-radius: 8px;
    height: 100%;
}

/* Убираем лишние отступы в контактах */
#contacts .card {
    overflow: hidden;
}

/* Адаптивность для карты */
@media (max-width: 992px) {
    #contacts .col-lg-7 {
        height: 400px;
    }
    
    #contacts iframe {
        min-height: 400px;
    }
    
    .contact-card {
        margin-bottom: 30px;
    }
    
    .map-overlay {
        position: relative !important;
        bottom: auto;
        left: auto;
        margin-top: 20px;
        max-width: 100% !important;
    }
    
    .map-container {
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    #contacts .col-lg-7 {
        height: 350px;
    }
    
    #contacts iframe {
        min-height: 350px;
    }
}

/* ===== ФУТЕР ===== */
footer {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.9);
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer h3 {
    color: white !important;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

footer h5 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

footer p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

footer a {
    color: rgba(255, 255, 255, 0.8) !important;
    transition: var(--transition);
}

footer a:hover {
    color: var(--accent-color) !important;
    padding-left: 5px;
}

footer .list-unstyled li {
    margin-bottom: 10px;
}

footer .bi {
    color: var(--accent-color);
    margin-right: 10px;
    font-size: 1.2rem;
}

footer .social-icon {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

footer .social-icon:hover {
    background-color: var(--accent-color);
}

footer hr {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 40px 0;
}

footer .text-decoration-none {
    color: rgba(255, 255, 255, 0.8);
}

footer .text-decoration-none:hover {
    color: var(--accent-color);
}

/* ===== ФОРМЫ ===== */
.form-control,
.form-select,
textarea.form-control {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: var(--transition);
    font-size: 1rem;
    background-color: white;
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(74, 36, 0, 0.1);
    outline: none;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* ===== СПИСКИ ===== */
.list-unstyled {
    padding-left: 0;
    list-style: none;
}

.list-unstyled li {
    margin-bottom: 8px;
}

/* ===== КАРТОЧКИ ===== */
.card {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background-color: white;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-medium);
}

.card-body {
    padding: 2rem;
}

@media (max-width: 768px) {
    .card-body {
        padding: 1.5rem;
    }
}

/* ===== ИКОНКИ ===== */
.bi {
    vertical-align: middle;
    line-height: 1;
}

.bi-check-circle-fill {
    color: var(--success-color);
}

/* ===== СКРОЛЛБАР ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--coffee-light);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* ===== МОБИЛЬНОЕ МЕНЮ ===== */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: white;
        padding: 20px;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
        border-top: 1px solid rgba(74, 36, 0, 0.1);
        margin-top: 10px;
    }
    
    .navbar-nav .nav-item {
        margin: 8px 0;
    }
    
    .navbar-nav .btn-primary {
        margin-left: 0;
        margin-top: 10px;
        display: block;
        width: 100%;
    }
    
    .nav-link {
        padding: 12px 15px !important;
        margin: 0;
    }
}

/* ===== ПРОГРЕСС БАР СКРОЛЛА ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform-origin: 0%;
    z-index: 1000;
    display: none;
}

/* ===== LOADING ANIMATION ===== */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 4px 15px rgba(74, 36, 0, 0.2);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(74, 36, 0, 0.3);
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .btn-lg {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .model-number {
        font-size: 2.5rem;
    }
    
    #order {
        padding: 60px 0;
    }
    
    footer {
        padding: 60px 0 30px;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    .back-to-top,
    footer .social-icon {
        display: none !important;
    }
    
    body {
        padding-top: 0;
    }
    
    .hero-section,
    section {
        padding: 20px 0 !important;
    }
    
    a {
        text-decoration: none !important;
        color: #000 !important;
    }
    
    .btn {
        display: none !important;
    }
}

/* ===== CUSTOM UTILITIES ===== */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
}

.gradient-bg {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* ===== ACCESSIBILITY ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
img {
    max-width: 100%;
    height: auto;
}

/* ===== ДОПОЛНИТЕЛЬНЫЕ АНИМАЦИИ ===== */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* ===== СПЕЦИАЛЬНЫЕ ЭФФЕКТЫ ДЛЯ ТЕКСТА ===== */
.gradient-text {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== СТИЛИ ДЛЯ ПЛАВАЮЩИХ ЭЛЕМЕНТОВ ===== */
.float-element {
    animation: float 3s ease-in-out infinite;
}

/* ===== УЛУЧШЕННЫЕ МЕДИА-ЗАПРОСЫ ===== */
@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 1.6rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
    }
    
    .hero-buttons .btn {
        width: auto;
    }
}

/* ===== СТИЛИ ДЛЯ ВЫДЕЛЕННОГО ТЕКСТА ===== */
/* Удалено выделение текста коричневым */

/* ===== СТИЛИ ДЛЯ РАЗДЕЛИТЕЛЕЙ ===== */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin: 40px 0;
}

/* ===== СТИЛИ ДЛЯ БЛОКОВ С ЦИФРАМИ ===== */
.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    display: block;
    margin-bottom: 10px;
}

.stat-label {
    color: var(--coffee-medium);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== СТИЛИ ДЛЯ ОТЗЫВОВ ===== */
.testimonial-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    position: relative;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 4rem;
    color: var(--primary-light);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-content {
    position: relative;
    z-index: 1;
    margin-top: 20px;
}

/* ===== СТИЛИ ДЛЯ АККОРДЕОНА ===== */
.accordion-button {
    background-color: white;
    color: var(--coffee-dark);
    font-weight: 600;
    border: 1px solid var(--border-color);
    border-radius: 10px !important;
    padding: 20px;
    transition: var(--transition);
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(74, 36, 0, 0.1);
    border-color: var(--primary-color);
}

.accordion-body {
    padding: 20px;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 10px 10px;
}

/* ===== СТИЛИ ДЛЯ ТАБОВ ===== */
.nav-tabs {
    border-bottom: 2px solid var(--border-color);
}

.nav-tabs .nav-link {
    border: none;
    color: var(--coffee-medium);
    padding: 12px 24px;
    margin-bottom: -2px;
}

.nav-tabs .nav-link:hover {
    border: none;
    color: var(--primary-color);
}

.nav-tabs .nav-link.active {
    background-color: transparent;
    border: none;
    border-bottom: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.tab-content {
    padding: 30px 0;
}

/* ===== СТИЛИ ДЛЯ УВЕДОМЛЕНИЙ ===== */
.toast {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: var(--shadow-heavy);
}

.toast-header {
    background-color: var(--primary-light);
    border-bottom: 1px solid var(--border-color);
    color: var(--primary-color);
    font-weight: 600;
    border-radius: 10px 10px 0 0;
}

/* ===== СТИЛИ ДЛЯ ПРОГРЕСС-БАРОВ ===== */
.progress {
    height: 10px;
    background-color: var(--primary-light);
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar {
    background-color: var(--primary-color);
    border-radius: 5px;
    transition: width 0.6s ease;
}

/* ===== СТИЛИ ДЛЯ БАДЖЕЙ ===== */
.badge {
    padding: 6px 12px;
    font-weight: 500;
    border-radius: 20px;
    font-size: 0.875rem;
}

.badge-primary {
    background-color: var(--primary-color) !important;
    color: white !important;
}

.badge-secondary {
    background-color: var(--coffee-light) !important;
    color: white !important;
}

.badge-accent {
    background-color: var(--accent-color) !important;
    color: white !important;
}

/* ===== СТИЛИ ДЛЯ ТУЛТИПОВ ===== */
.tooltip-inner {
    background-color: var(--primary-color);
    color: white;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.875rem;
}

.tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: var(--primary-color);
}

/* ===== СТИЛИ ДЛЯ МОДАЛЬНЫХ ОКОН ===== */
.modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: var(--shadow-heavy);
}

.modal-header {
    background-color: var(--primary-light);
    border-bottom: 1px solid var(--border-color);
    border-radius: 16px 16px 0 0;
    padding: 20px 30px;
}

.modal-title {
    color: var(--primary-color);
    font-weight: 600;
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 20px 30px;
    border-radius: 0 0 16px 16px;
}

/* ===== СТИЛИ ДЛЯ КАРУСЕЛИ ===== */
.carousel-item {
    transition: transform 0.6s ease-in-out;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: var(--primary-dark);
    opacity: 1;
}

.carousel-indicators button {
    background-color: var(--border-color);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 5px;
}

.carousel-indicators button.active {
    background-color: var(--primary-color);
}

/* ===== ПОСЛЕДНИЕ ШТРИХИ ===== */
::selection {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

::-moz-selection {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

/* ===== ОПТИМИЗАЦИЯ ДЛЯ ВЫСОКОDPI ЭКРАНОВ ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-section::before {
        background: linear-gradient(135deg, rgba(74, 36, 0, 0.05) 0%, rgba(74, 36, 0, 0) 70%);
    }
    
    #order::before {
        background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"><rect width="200" height="200" fill="none"/><path d="M0,100 Q50,80 100,100 T200,100" stroke="rgba(255,255,255,0.05)" stroke-width="3" fill="none"/></svg>');
    }
}

/* ===== СТИЛИ ДЛЯ ИЗМЕНЕНИЙ ===== */

/* Логотип в навигации */
.navbar-brand img {
    height: 40px;
    width: auto;
}

/* Картинки в моделях сотрудничества */
.model-image {
    text-align: center;
    margin-bottom: 1rem;
    
}

.model-image img {
    max-height: 80px;
    width: auto;
    display: inline !important;
}

/* Футер с улучшенным расположением колонок */
footer .row.align-items-start {
    align-items: flex-start !important;
}

footer .col-lg-8 .row {
    display: flex;
    justify-content: space-between;
}

@media (max-width: 768px) {
    footer .col-lg-8 .row {
        flex-direction: column;
    }
}

/* Стили для логотипа в футере */
footer img[alt="Trandora"] {
    margin-bottom: 1rem;
}

/* Улучшенные отступы для колонок футера */
footer .col-md-6 {
    padding-left: 15px;
    padding-right: 15px;
}

/* Адаптивность для изображения карты */
@media (max-width: 992px) {
    #contacts .col-lg-7 {
        height: 400px;
    }
    
    #contacts img {
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    #contacts .col-lg-7 {
        height: 350px;
    }
    
    #contacts img {
        min-height: 350px;
    }
}

/* Удаляем старые стили для model-number */
.model-number {
    display: none;
}

/* ===== КНОПКИ WHATSAPP ===== */

/* Основная кнопка WhatsApp */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    color: white;
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn-sm {
    width: 36px;
    height: 36px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    text-decoration: none;
}

.whatsapp-btn-sm:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    color: white;
}

/* Подсказка для кнопки WhatsApp */
.whatsapp-tooltip {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.whatsapp-btn:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    bottom: 75px;
}

/* Кнопка телефона в навигации */
.btn-phone {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Адаптивность для кнопок */
@media (max-width: 768px) {
    .whatsapp-btn {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
        font-size: 26px;
    }
    
    .whatsapp-btn-sm {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .whatsapp-tooltip {
        display: none; /* Скрываем подсказку на мобильных */
    }
    
    .navbar-nav .btn-phone {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

/* Стили для иконки WhatsApp в футере */
footer .whatsapp-btn-sm {
    background-color: rgba(37, 211, 102, 0.8);
}

footer .whatsapp-btn-sm:hover {
    background-color: #25D366;
}

/* Анимация пульсации для основной кнопки */
@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-btn {
    animation: whatsapp-pulse 2s infinite;
}