/* === БАЗОВЫЙ СТИЛЬ ВНЕШНЕГО ВИДА УК === */

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
    background-color: #ffffff;
    color: #222;
}

:root {
    --uk-primary: #003366;
    --uk-accent: #2176bd;
}

a {
    transition: color 0.3s ease;
}
a:hover {
    color: var(--uk-accent);
}

header {
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

nav.menu a {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: background-color 0.2s;
}
nav a:hover {
    background-color: rgba(255,255,255,0.15);
}

footer {
    background: #f1f4f8;
    border-top: 1px solid #ddd;
}

.mobile-nav {
    background-color: white;
    border-top: 1px solid #e5e7eb;
    padding: 1rem;
}

h1, h2, h3 {
    font-weight: 600;
    color: #222;
}

.banner {
    background: url('/static/images/banner.jpg') no-repeat center;
    background-size: cover;
    height: 320px;
    position: relative;
}
.banner .overlay {
    background-color: rgba(0,0,0,0.4);
    position: absolute;
    inset: 0;
}
.banner h1 {
    position: relative;
    color: white;
    text-align: center;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0px;
}

/* Новость */
.news-card {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: box-shadow 0.3s;
}
.news-card:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.news-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.contact-icon {
    width: 24px;
    height: 24px;
    margin-right: 0.5rem;
    color: var(--uk-accent);
}

.emergency-badge {
    background-color: #e5e7eb;
    color: #000;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

/* Логотип с плашкой */
.logo-box {
    background-color: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    border-bottom-left-radius: 0.75rem;
    border-bottom-right-radius: 0.75rem;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
}

nav a.active {
    border-bottom: 2px solid var(--uk-accent);
}

.supplier-card {
    background-color: white;
    border: 1px solid #d1d5db;
    border-radius: 1rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    width: 176px;
    height: 96px;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0.5rem;
}

@media (max-width: 640px) {
    .supplier-carousel {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 1rem;
    }

    .supplier-card {
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
    }

    .news-card {
        width: 100%;
        height: auto;
    }
}

/* === Хлебные крошки === */
.breadcrumbs a.breadcrumb-link {
    color: var(--uk-accent);
    text-decoration: none;
    background-color: transparent;
    transition: color 0.2s ease;
}

.breadcrumbs a.breadcrumb-link:hover {
    text-decoration: underline;
    color: var(--uk-primary);
}

.breadcrumbs span {
    font-weight: 400;
}

.cke_contents {
  width: 100% !important;
  max-width: 100% !important;
}

.cke_chrome {
  width: 100% !important;
  max-width: 100% !important;
}

.django-ckeditor-widget {
 width: 100% !important;
}

.prose iframe {
  width: 100%;
  max-width: 100%;
  height: 400px;
  margin: 1rem 0;
  border-radius: 8px;
}
