:root {
    --orange: #ff7a00;
    --orange-dark: #e66d00;
    --orange-light: #ff9e44;
    --gray-light: #f8f9fa;
    --gray-dark: #343a40;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========== УТИЛИТЫ ========== */
.text-orange {
    color: var(--orange);
}

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

.btn-orange {
    background-color: var(--orange);
    color: white;
    border: none;
    transition: all 0.3s ease;
    padding: 10px 20px;
}

.btn-orange:hover {
    background-color: var(--orange-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 122, 0, 0.3);
}

.btn-orange:active {
    transform: translateY(0);
}

.border-orange {
    border: 2px solid var(--orange);
}

.container {
    max-width: 1440px !important;
}

/* ========== ХЕДЕР (АДАПТИВ) ========== */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 0.8rem 0;
    transition: all 0.3s ease;
}

#navbarMain {
    padding: 4px 0 !important;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 800;
    transition: transform 0.3s ease;
}

.navbar-brand i {
    color: #ff7a00;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
}

.navbar-brand .brand-text {
    background: linear-gradient(135deg, #ff7a00 0%, #ff9e44 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    color: #333 !important;
    font-weight: 500;
    margin: 0 0.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff7a00, #ff9e44);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-link:hover {
    color: #ff7a00 !important;
    transform: translateY(-2px);
}

.btn-custom {
    background: linear-gradient(135deg, #ff7a00, #ff9e44);
    color: white;
    border: none;
    padding: 8px 24px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 122, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none !important;
}

.btn-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 122, 0, 0.3);
    color: white;
}

.btn-outline-custom {
    background: transparent;
    border: 2px solid #ff7a00;
    color: #ff7a00;
    padding: 8px 24px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none !important;
}

.btn-outline-custom:hover {
    background: linear-gradient(135deg, #ff7a00, #ff9e44);
    color: white;
    transform: translateY(-2px);
}

.social-icon {
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f5f5f5;
    color: #ff7a00;
    transition: all 0.3s ease;
    margin-left: 8px;
}

.social-icon:hover {
    background: #ff7a00;
    color: white;
    transform: translateY(-2px);
}

.contact-info {
    font-size: 0.85rem;
    padding: 5px 12px;
    background: #f8f9fa;
    border-radius: 50px;
    margin-right: 15px;
    display: flex;
    align-items: center;
}

.contact-info i {
    color: #ff7a00;
    margin-right: 5px;
}

/* Мобильное меню */
.navbar-toggler {
    border: none !important;
    padding: 0;
    width: 45px;
    height: 35px;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler .bar {
    width: 100%;
    height: 3px;
    background: #ff7a00;
    border-radius: 3px;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.navbar-toggler .bar:nth-child(1) { top: 0; }
.navbar-toggler .bar:nth-child(2) { top: 50%; transform: translateY(-50%); }
.navbar-toggler .bar:nth-child(3) { bottom: 0; }

.navbar-toggler.active .bar:nth-child(1) {
    transform: rotate(45deg);
    top: 45%;
}

.navbar-toggler.active .bar:nth-child(2) {
    opacity: 0;
}

.navbar-toggler.active .bar:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 50%;
}

/* Анимация мобильного меню */
.navbar-collapse {
    transition: all 0.3s ease;
}

/* ========== АДАПТИВ ХЕДЕРА ========== */
@media (max-width: 991px) {
    .navbar-collapse {
        background: white;
        padding: 20px;
        border-radius: 15px;
        margin-top: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .nav-link {
        padding: 12px 0;
        text-align: center;
    }

    .nav-link::after {
        display: none;
    }

    .contact-info {
        display: inline-flex;
        margin: 10px 0;
    }

    .btn-custom, .btn-outline-custom {
        width: 100%;
        margin: 5px 0;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.4rem;
    }

    .contact-info {
        font-size: 0.75rem;
        padding: 3px 10px;
    }
}

/* ========== HERO СЕКЦИЯ ========== */
.hero {
    height: 80vh;
    min-height: 500px;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
    url('https://images.unsplash.com/photo-1534438327276-14e5300c3a48?w=1920') center/cover no-repeat;
    position: relative;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero a {
    animation: fadeInUp 0.8s ease 0.4s both;
    display: inline-block;
}

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

@media (max-width: 768px) {
    .hero {
        height: 60vh;
        min-height: 400px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero {
        height: 50vh;
        min-height: 350px;
    }

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

    .hero p {
        font-size: 0.9rem;
    }
}

/* ========== КАРТОЧКИ УСЛУГ И ТОВАРОВ ========== */
.service-card,
.card {
    border: none;
    border-radius: 15px;
    transition: all 0.3s ease;
    overflow: hidden;
    background: white;
}

.service-card img,
.card-img-top {
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover img,
.card:hover .card-img-top {
    transform: scale(1.05);
}

.service-card:hover,
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(255,122,0,0.15);
}

.service-card .card-title,
.card .card-title {
    color: var(--orange);
    font-weight: 600;
}

/* Адаптивные карточки */
@media (max-width: 768px) {
    .service-card img,
    .card-img-top {
        height: 180px;
    }

    .row.g-4 {
        --bs-gutter-y: 1rem;
    }
}

@media (max-width: 576px) {
    .service-card img,
    .card-img-top {
        height: 160px;
    }

    .card-body {
        padding: 1rem;
    }

    .card-title {
        font-size: 1.1rem;
    }
}

/* ========== ПРЕИМУЩЕСТВА ========== */
.adv-card {
    background: #ffffff;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid #f1f1f1;
    height: 100%;
    padding: 1.5rem;
}

.adv-card:hover {
    transform: translateY(-8px);
    border-color: var(--orange);
    box-shadow: 0 8px 25px rgba(255,122,0,0.2);
}

.adv-card .icon {
    font-size: 40px;
    color: var(--orange);
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .adv-card {
        padding: 1rem;
    }

    .adv-card .icon {
        font-size: 32px;
    }

    .adv-card h5 {
        font-size: 1rem;
    }

    .adv-card p {
        font-size: 0.85rem;
    }
}

/* ========== ОТЗЫВЫ ========== */
.review-card {
    background: #ffffff;
    border-radius: 15px;
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
}

.stars {
    font-size: 22px;
    color: var(--orange);
    letter-spacing: 3px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--orange);
    border-radius: 50%;
    padding: 20px;
    background-size: 50%;
}

@media (max-width: 768px) {
    .review-card {
        padding: 1rem;
        margin: 0 15px;
    }

    .stars {
        font-size: 18px;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .review-card h5 {
        font-size: 1rem;
    }

    .review-card p {
        font-size: 0.85rem;
    }
}

/* ========== ГАЛЕРЕЯ ========== */
#gallery .row {
    margin: 0;
}

#gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.3s ease;
    cursor: pointer;
}

#gallery img:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    #gallery img {
        height: 200px;
    }
}

@media (max-width: 576px) {
    #gallery img {
        height: 180px;
    }
}

/* ========== ФУТЕР ========== */
footer {
    background: #1a1a1a;
    color: #ccc;
}

footer h5 {
    color: var(--orange);
    margin-bottom: 20px;
}

footer p {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

footer form input,
footer form button {
    border-radius: 8px;
}

@media (max-width: 768px) {
    footer .row {
        text-align: center;
    }

    footer h5 {
        margin-top: 20px;
    }
}

/* ========== ТАБЛИЦЫ (АДАПТИВ) ========== */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    min-width: 600px;
}

@media (max-width: 768px) {
    .table {
        font-size: 0.85rem;
    }

    .table th,
    .table td {
        padding: 8px;
    }
}

/* ========== ФОРМЫ ========== */
input,
textarea,
select {
    border-radius: 8px !important;
    border: 1px solid #ddd;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.1);
    outline: none;
}

/* ========== МОДАЛЬНЫЕ ОКНА ========== */
@media (max-width: 576px) {
    .modal-dialog {
        margin: 10px;
    }

    .modal-content {
        border-radius: 15px;
    }
}

/* ========== АНИМАЦИИ ========== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

/* ========== КАРТА (Leaflet) ========== */
#map {
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    #map {
        height: 350px !important;
    }
}

@media (max-width: 576px) {
    #map {
        height: 280px !important;
    }
}

/* ========== АДМИН-ПАНЕЛЬ ========== */
@media (max-width: 992px) {
    .admin-sidebar {
        position: static;
        height: auto;
        margin-bottom: 20px;
    }

    .admin-content {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .admin-sidebar .nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .admin-sidebar .nav-link {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}

/* ========== ПРОФИЛЬ ========== */
@media (max-width: 768px) {
    .profile-card {
        margin-bottom: 20px;
    }

    .profile-stats {
        flex-direction: column;
        gap: 10px;
    }
}

/* ========== СЕТКА ДЛЯ КАРТОЧЕК ========== */
@media (max-width: 1200px) {
    .col-xxl-4 {
        flex: 0 0 auto;
        width: 33.333%;
    }
}

@media (max-width: 992px) {
    .col-lg-4 {
        flex: 0 0 auto;
        width: 50%;
    }
}

@media (max-width: 768px) {
    .col-md-4,
    .col-md-6 {
        flex: 0 0 auto;
        width: 100%;
    }
}

/* ========== КНОПКИ ========== */
@media (max-width: 576px) {
    .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .btn-lg {
        padding: 10px 20px;
        font-size: 1rem;
    }
}

/* ========== ЗАГОЛОВКИ ========== */
h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }
}

/* ========== ОТСТУПЫ ========== */
.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

@media (max-width: 768px) {
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .mb-5 {
        margin-bottom: 2rem !important;
    }
}

/* ========== МЕНЮ-БУРГЕР ДЛЯ МОБИЛЬНЫХ ========== */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--orange);
    }

    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 15px 0;
    }

    .nav-menu.active {
        display: flex;
    }
}

/* ========== СКРОЛЛБАР ========== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--orange);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--orange-dark);
}