/* /local/templates/sandwiches/styles.css */
@import url('./vendor/fonts/roboto.css');

body {
    font-family: 'Roboto', Helvetica, Arial, sans-serif;
    color: #333;
}

nav a.active,
.navbar-nav .nav-link.active,
.navbar-nav .nav-link.show,
.article h2,
.flashblue {
    color: #007dc5 !important;
}

.article h2 {
    font-weight: normal;
    padding-top: 10px;
}

.bg-secondary-subtle {
    background-color: #f3f2f7 !important;
}

.bg-light {
    background-color: #f8f8ff !important;
}

.bg-badge {
    background-color: rgba(0, 125, 197, 1);
    font-size: .875em;
}

.bg-price {
    color: #fff;
    background-color: #0fc54c;
}

.text-price {
    color: #0eb345 !important;
}

.text-orange {
    color: #f7871d !important;
}

:root,
[data-bs-theme=light] {
    --bs-blue: #007dc5;
    --bs-link-color: #007dc5;
    --bs-primary: #007dc5;
    --bs-link-color-rgb: 0, 125, 197;
    --bs-link-hover-color: #007dc5;
}


/* Адаптивный контейнер карточки */
.mobile-card-container {
    min-height: 200px;
    background:
        linear-gradient(120deg, rgba(223, 231, 244, 0.98), rgba(255, 255, 255, 0.8)),
        url('/upload/medialibrary/53d/x9chl68ihckdvi3y5y8b9ehtnxd4hmod.svg') no-repeat center center / cover;
}

@media (min-width: 768px) {
    .mobile-card-container {
        height: 300px;
        background-size: 420%;
    }
}

.mobile-image {
    max-height: 120px;
    width: auto;
    margin: 0 auto;
    display: block;
}

@media (min-width: 768px) {
    .mobile-image {
        max-height: none;
    }
}

@media (max-width: 767.98px) {
    .mobile-card-container {
        background-size: 200% !important;
    }
}


/* Текстовая подложка поверх изображений */
.text-background-solid {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.25) 100%);
    padding: 0.5rem 1rem;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    line-height: 1.4;
    display: inline;
}

.custom-rounded-left-bottom {
    border-bottom-right-radius: 0 !important;
}


/* Кнопки с SVG */
.catalog-btn svg {
    transition: fill 0.2s ease-in-out;
    fill: currentColor;
}

.btn-outline-primary {
    color: #007dc5;
    border-color: #007dc5;
    background-color: transparent;
}

.btn-outline-primary svg {
    fill: #007dc5;
}

.btn-outline-primary:hover {
    color: #fff;
    background-color: #007dc5;
}

.btn-outline-primary:hover svg {
    fill: #fff;
}

.btn-outline-primary:active,
.btn-outline-primary.active,
.btn-outline-primary:focus {
    color: #fff;
    background-color: #0069a7;
    border-color: #00619b;
}

.btn-outline-primary:active svg,
.btn-outline-primary.active svg,
.btn-outline-primary:focus svg {
    fill: #fff;
}

.btn-outline-primary:disabled,
.btn-outline-primary.disabled {
    color: #007dc5;
    background-color: transparent;
    opacity: 0.65;
}

.btn-outline-primary:disabled svg,
.btn-outline-primary.disabled svg {
    fill: #007dc5;
    opacity: 0.65;
}


/* Primary-кнопки: спокойный тёмно-синий без яркого Bootstrap active */
.btn-primary,
.btn-primary:visited {
    background-color: #132754 !important;
    border-color: #132754 !important;
    color: #fff !important;

    --bs-btn-bg: #132754;
    --bs-btn-border-color: #132754;
    --bs-btn-color: #fff;

    --bs-btn-hover-bg: #10224a;
    --bs-btn-hover-border-color: #10224a;
    --bs-btn-hover-color: #fff;

    --bs-btn-active-bg: #0d1f45;
    --bs-btn-active-border-color: #0d1f45;
    --bs-btn-active-color: #fff;

    --bs-btn-disabled-bg: #132754;
    --bs-btn-disabled-border-color: #132754;
    --bs-btn-disabled-color: #fff;

    --bs-btn-focus-shadow-rgb: 19, 39, 84;
}

.btn-primary:hover {
    background-color: #10224a !important;
    border-color: #10224a !important;
    color: #fff !important;
}

.btn-primary:focus,
.btn-primary:focus-visible,
.btn-primary:active,
.btn-primary.active,
.btn-primary.show,
.btn-primary:first-child:active,
:not(.btn-check) + .btn-primary:active {
    background-color: #0d1f45 !important;
    border-color: #0d1f45 !important;
    color: #fff !important;
    box-shadow: 0 0 0 0.22rem rgba(19, 39, 84, 0.18) !important;
}

.btn-primary:disabled,
.btn-primary.disabled {
    background-color: #132754 !important;
    border-color: #132754 !important;
    color: #fff !important;
    opacity: 0.65;
}

.bg-primary,
.bg-primary-dark {
    background-color: #132754 !important;
}


/* Warning-кнопки */
.btn-warning,
.btn-warning:visited {
    background-color: #ff8407 !important;
    border-color: #ff8407 !important;
    color: #fff !important;
}

.btn-warning:hover {
    background-color: #e67600 !important;
    border-color: #e67600 !important;
    color: #fff !important;
}

.btn-warning:focus,
.btn-warning:focus-visible {
    background-color: #e67600 !important;
    border-color: #e67600 !important;
    color: #fff !important;
    box-shadow: 0 0 0 0.25rem rgba(255, 132, 7, 0.25) !important;
}

.btn-warning:active,
.btn-warning.active {
    background-color: #cc6a00 !important;
    border-color: #cc6a00 !important;
    color: #fff !important;
}

.btn-warning:disabled,
.btn-warning.disabled {
    background-color: #ffa64d !important;
    border-color: #ffa64d !important;
    color: #fff !important;
    opacity: 0.65;
}


/* Таблицы */
.table.no-wrap td,
.table.no-wrap th {
    white-space: nowrap;
}


/* Слайдер на детальной */
.square-image {
    display: block;
}

.square-image img {
    display: block;
    width: 100%;
    height: auto;
}

.gallery-thumbs .swiper-slide {
    width: 100px !important;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.gallery-thumbs .swiper-slide-thumb-active {
    opacity: 1;
}

.swiper-button-next,
.swiper-button-prev {
    padding: 15px;
    color: white;
}


/* Страница о компании */
.about_heading {
    color: #f8f8ff;
}


/* Круглая карточка/изображение */
.circle {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-family: Arial, sans-serif;
}


/* Баннер разработки компонентов */
.dh-custom-dev-banner {
    position: relative;
    min-height: 180px;
    overflow: hidden;
    border-radius: 18px;
    background: #f4f6fb;
    color: #101828;
    isolation: isolate;
}

.dh-custom-dev-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(
            90deg,
            rgba(246, 248, 252, 1) 0%,
            rgba(246, 248, 252, 0.98) 43%,
            rgba(246, 248, 252, 0.76) 66%,
            rgba(246, 248, 252, 0.22) 100%
        ),
        url('/upload/medialibrary/138/fx4j9jdfci2zlb39mynct1808jzre23u.jpg') right center / cover no-repeat;
}

.dh-custom-dev-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(135deg, rgba(16, 41, 95, 0.08) 0%, transparent 38%),
        radial-gradient(circle at 78% 50%, rgba(16, 41, 95, 0.12), transparent 34%);
    pointer-events: none;
}

.dh-custom-dev-banner__inner {
    min-height: 180px;
    padding: 42px 48px;
}

.dh-custom-dev-banner__title {
    max-width: 720px;
    margin: 0 0 12px;
    color: #111827;
    font-size: clamp(28px, 2.7vw, 40px);
    line-height: 1.15;
    font-weight: 600;
}

.dh-custom-dev-banner__text {
    max-width: 620px;
    margin: 0;
    color: #374151;
    font-size: 18px;
    line-height: 1.45;
}

.dh-custom-dev-banner__btn,
.dh-custom-dev-banner__btn:visited {
    background-color: #10295f !important;
    border-color: #10295f !important;
    color: #fff !important;
    border: 0;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 14px 32px rgba(16, 41, 95, 0.22);

    --bs-btn-bg: #10295f;
    --bs-btn-border-color: #10295f;
    --bs-btn-color: #fff;

    --bs-btn-hover-bg: #0b1f4a;
    --bs-btn-hover-border-color: #0b1f4a;
    --bs-btn-hover-color: #fff;

    --bs-btn-active-bg: #0b1f4a;
    --bs-btn-active-border-color: #0b1f4a;
    --bs-btn-active-color: #fff;

    --bs-btn-focus-shadow-rgb: 16, 41, 95;
}

.dh-custom-dev-banner__btn:hover,
.dh-custom-dev-banner__btn:focus,
.dh-custom-dev-banner__btn:focus-visible,
.dh-custom-dev-banner__btn:active,
.dh-custom-dev-banner__btn.active,
.dh-custom-dev-banner__btn:first-child:active,
:not(.btn-check) + .dh-custom-dev-banner__btn:active {
    background-color: #0b1f4a !important;
    border-color: #0b1f4a !important;
    color: #fff !important;
    box-shadow: 0 0 0 0.22rem rgba(16, 41, 95, 0.18) !important;
}

@media (max-width: 991.98px) {
    .dh-custom-dev-banner::before {
        background:
            linear-gradient(
                90deg,
                rgba(246, 248, 252, 1) 0%,
                rgba(246, 248, 252, 0.94) 100%
            ),
            url('/upload/medialibrary/138/fx4j9jdfci2zlb39mynct1808jzre23u.jpg') right center / cover no-repeat;
    }

    .dh-custom-dev-banner__inner {
        padding: 34px 28px;
    }

    .dh-custom-dev-banner__text {
        font-size: 16px;
    }

    .dh-custom-dev-banner__actions {
        margin-top: 26px;
        text-align: left !important;
    }
}

@media (max-width: 575.98px) {
    .dh-custom-dev-banner {
        border-radius: 12px;
    }

    .dh-custom-dev-banner__inner {
        padding: 30px 22px;
    }

    .dh-custom-dev-banner__btn {
        width: 100%;
    }
}


/* Accordion Bootstrap: фирменный синий, более заметный активный пункт */
.accordion {
    --bs-accordion-color: #212529;
    --bs-accordion-bg: #fff;
    --bs-accordion-border-color: rgba(19, 39, 84, 0.18);

    --bs-accordion-btn-color: #132754;
    --bs-accordion-btn-bg: #fff;

    --bs-accordion-active-color: #071b42;
    --bs-accordion-active-bg: #dce7f7;

    --bs-accordion-btn-focus-border-color: rgba(19, 39, 84, 0.18);
    --bs-accordion-btn-focus-box-shadow: none;
}

.accordion-button {
    color: #132754;
    font-weight: 500;
}

.accordion-button:not(.collapsed) {
    color: #071b42;
    background-color: #dce7f7;
    box-shadow: inset 0 -1px 0 rgba(19, 39, 84, 0.18);
}

.accordion-button:hover {
    color: #071b42;
    background-color: #cfdef3;
}

.accordion-button:focus,
.accordion-button:focus-visible {
    border-color: rgba(19, 39, 84, 0.18);
    box-shadow: none !important;
    outline: none;
}

.accordion-button::after,
.accordion-button:not(.collapsed)::after {
    filter: brightness(0) saturate(100%) invert(11%) sepia(54%) saturate(1844%) hue-rotate(205deg) brightness(90%) contrast(99%);
}


/* Cookie consent — final */
.dh-cookie {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 1080;
	display: none;
	max-width: 500px;
	margin: 0 auto;
	padding: 12px 12px 12px 14px;
	background: #fff;
	color: #343a40;
	border: 1px solid #d6d9dc;
	border-radius: 10px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .07);
	font-size: 14px;
	line-height: 1.35;
}

.dh-cookie--visible {
	display: block;
}

.dh-cookie__row {
	display: flex;
	align-items: center;
	gap: 10px;
}

.dh-cookie__text {
	flex: 1 1 auto;
	min-width: 0;
}

.dh-cookie__actions {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
}

.dh-cookie__link {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
	white-space: nowrap;
}

.dh-cookie__close {
	position: relative;
	flex: 0 0 20px;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	font-size: 0;
	cursor: pointer;
}

.dh-cookie__close::before,
.dh-cookie__close::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 14px;
	height: 1.5px;
	background: #bfc3c7;
	transform-origin: center;
}

.dh-cookie__close::before {
	transform: translate(-50%, -50%) rotate(45deg);
}

.dh-cookie__close::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

.dh-cookie__close:hover::before,
.dh-cookie__close:hover::after {
	background: #9fa4a9;
}

@media (max-width: 767.98px) {
	.dh-cookie {
		left: 8px;
		right: 8px;
		bottom: 8px;
		max-width: none;
		padding: 11px 10px 11px 12px;
		font-size: 13px;
	}

	.dh-cookie__row {
		gap: 8px;
	}

	.dh-cookie__actions .btn {
		white-space: nowrap;
	}
}
