/* Description: Master CSS file */

/*****************************************
Table Of Contents:
- General Styles
- Navigation
- Home
- Information
- Button
- Services
- Plans
- Testimonials
- Newsletter
- Back To Top Button
- Extra Pages
- Media Queries
- Cookies
- Privacy policy
******************************************/


/**************************/
/*     General Styles     */
/**************************/

:root {
	--primary: #1c262f;
	--primary-light: #212d37;
	--secondary: #0ee951;
	--tertiary: #00dabf;
	--gradient: linear-gradient(to right, #0ee951, #00dabf);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: "Poppins", sans-serif;
}

h1 {
	font-size: 60px;
	font-weight: 500;
}

button {
	font-family: sans-serif;
}

p,
ul,
h4 {
	margin: 0;
	padding: 0;
}

a {
	color: white;
	text-decoration: none;
}

li {
  	list-style-type: none;
}

/* Section Background */
.home,
.about,
.services,
.plans,
.work,
.contact {
	height: 110vh;
	position: relative;
}


.services,
.work,
.contact,
.testimonial,
.footer {
  	background-color: var(--primary);
}

.about,
.plans,
.company,
.newsletter,
.location {
  	background-color: var(--primary-light);
}

.bottom {
  	background-color: black;
}

/* Gradient Border And Background On Icons */
.home_text,
.home .fas,
.plans .far,
.information .fas,
.work .fas,
.services .fas,
.location .far,
.location .fas {
	padding: 15px 0;
	background: -webkit-gradient(
		linear,
		left top,
		left bottom,
		from(#0ee951),
		to(#00dabf)
	);
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.navbar-nav a:hover,
.footer a:hover,
.footer .fab:hover {
	cursor: pointer;
	background: var(--gradient);
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}


/**********************/
/*     Navigation     */
/**********************/
.navbar {
	font-weight: 500;
	font-size: 0.875rem;
	line-height: 0.875rem;
	background-color: var(--primary);
	box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.025);
}

.navbar .navbar-brand {
	padding-top: 0.25rem;
	padding-bottom: 0.25rem;
}

.navbar .logo-image img {
	width: 108px;
	height: 32px;
}

.navbar .logo-text {
	color: #fff;
	font-weight: 500;
	line-height: 1rem;
	font-size: 1.575rem;
	text-decoration: none;
}

.offcanvas-collapse {
	position: fixed;
	top: 2.75rem; /* adjusts the height between the top of the page and the offcanvas menu */
	bottom: 0;
	left: 100%;
	width: 100%;
	overflow-y: auto;
	visibility: hidden;
	padding-right: 1rem;
	padding-left: 1rem;
	background-color: var(--primary);
	transition: transform 0.2s ease-in-out, visibility 0.2s ease-in-out;
}

.offcanvas-collapse.open {
	visibility: visible;
	transform: translateX(-100%);
}

.navbar .navbar-nav {
	margin-top: 0.75rem;
	margin-bottom: 0.5rem;
}

.navbar .dropdown-menu {
	border: none;
	margin-top: 0.25rem;
	margin-bottom: 0.25rem;
	background-color: var(--primary);
}

.navbar .dropdown-item {
	color: #eee;
	font-weight: 500;
	font-size: 0.875rem;
	line-height: 0.875rem;
	padding-top: 0.625rem;
	text-decoration: none;
	padding-bottom: 0.625rem;
}

.navbar .dropdown-item:hover {
  	background-color: var(--primary);
}

.navbar .dropdown-divider {
	width: 100%;
	height: 1px;
	border: none;
	margin: 0.5rem auto 0.5rem auto;
	background-color: var(--primary-light);
}

.navbar .nav-item .nav-link {
	color: #eee;
	text-decoration: none;
	padding-top: 0.625rem;
	padding-bottom: 0.625rem;
	transition: all 0.2s ease;
}

.navbar .fa-stack {
	width: 2em;
	font-size: 0.75rem;
	margin-right: 0.25rem;
}

.navbar .fa-stack-2x {
	background: -webkit-gradient(
		linear,
		left top,
		left bottom,
		from(#0ee951),
		to(#00dabf)
	);
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	transition: all 0.2s ease;
}

.navbar .fa-stack-1x {
	color: #ffffff;
	transition: all 0.2s ease;
}

.navbar .fa-stack:hover .fa-stack-2x {
  	color: var(--primary);
}

.navbar .fa-stack:hover .fa-stack-1x {
  	color: var(--primary);
}

.navbar .navbar-toggler {
	padding: 0;
	border: none;
	font-size: 1.25rem;
}


/****************/
/*     Home     */
/****************/
.home {
	background-image: url('/static/images/home.jpg') !important;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-attachment: fixed;
}

.para {
  	width: 50%;
}

.para-light {
  	opacity: 0.7;
}


/***********************/
/*     Information     */
/***********************/
.information .container-fluid .row div:first-child {
  	background-color: var(--primary);
}

.information .container-fluid .row div:last-child {
  	background-color: white;
}

.information .container-fluid .row div:nth-child(2) {
  	background-color: var(--primary-light);
}


/******************/
/*     Button     */
/******************/
.btn {
	color: white;
	border-radius: 0;
	border-width: 2px;
	padding: 10px 30px;
	border-image-slice: 1;
	background-image: none;
	background: transparent;
	border-image-source: var(--gradient);
	box-shadow: 5px 5px 0px 0px var(--secondary);
}

.btn:hover {
	color: white;
	box-shadow: none;
	border-radius: 0;
	padding: 10px 30px;
	transform: translate(5px, 5px);
}

/* Email - Newsletter Button */
.btn-secondary {
	color: black;
	border-width: 2px;
	padding: 10px 30px;
	border-image-slice: 1;
	background-image: none;
	background: transparent;
	border-image-source: var(--gradient);
}

.btn-secondary:hover {
	color: black;
	padding: 10px 30px;
	background-image: var(--gradient);
}

/* Other Pages Button */
.btn-tertiary {
	color: black;
	border-radius: 0;
	border-width: 2px;
	padding: 10px 30px;
	border-image-slice: 1;
	background-image: none;
	background: transparent;
	border-image-source: var(--gradient);
	box-shadow: 5px 5px 0px 0px var(--secondary);
}

.btn-tertiary:hover {
	color: black;
	box-shadow: none;
	border-radius: 0;
	padding: 10px 30px;
	transform: translate(5px, 5px);
}


/********************/
/*     Services     */
/********************/
.services .card {
	padding: 20px;
	border-radius: 0;
	border: 2px solid white;
}

.services .card:hover {
	border: 10px solid;
	transform: scale(1.01);
	border-image-slice: 1;
	border-width: 2px;
	border-image-source: var(--gradient);
	box-shadow: 5px 5px 0px 0px #0ee951;
}

.services .row {
    align-items: stretch;
}

.services .col-lg-4 {
    display: flex;
    margin-bottom: 1rem;
}

.services .card {
    padding: 20px;
    border-radius: 0;
    border: 2px solid white;
    height: 100%;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    transition: all 0.3s ease;
}

.services .card i,
.services .card h4 {
    flex-shrink: 0;
}

.services .card p {
    flex-grow: 1;
    margin-bottom: 0;
}

.services .card:hover {
    border: 10px solid;
    transform: scale(1.01);
    border-image-slice: 1;
    border-width: 2px;
    border-image-source: var(--gradient);
    box-shadow: 5px 5px 0px 0px #0ee951;
}

/*****************/
/*     Plans     */
/*****************/
.plans .card {
	padding: 20px;
	border: 2px solid white;
}

.plans .card {
    padding: 20px;
    border: 2px solid white;
    transition: all 0.3s ease; /* Добавляем плавный переход */
}

.plans .card:hover {
    border: 10px solid;
    transform: scale(1.01);
    border-image-slice: 1;
    border-width: 2px;
    border-image-source: var(--gradient);
    box-shadow: 5px 5px 0px 0px #0ee951;
}

/************************/
/*     Testimonials     */
/************************/
.slider-1 {
	padding-top: 8.25rem;
	padding-bottom: 8.5rem;
}

.slider-1 .section-title {
  	text-align: center;
}

.slider-1 .h2-heading {
	text-align: center;
	margin-bottom: 3rem;
}

.testimonial-card {
	border: 10px solid;
	border-image-slice: 1;
	border-width: 3px;
	border-image-source: var(--gradient);
    height: 100%; /* Добавь это */
    display: flex; /* Добавь это */
    flex-direction: column; /* Добавь это */
}

.slider-1 .slider-container {
  	position: relative;
}

.slider-1 .swiper-container {
	width: 86%;
	position: static;
}

/* Добавь эти стили для выравнивания */
.swiper-wrapper {
    align-items: stretch;
}

.swiper-slide {
    height: auto;
    display: flex;
}

.swiper-slide .testimonial-card {
    flex-grow: 1;
}

.testimonial-card p:first-child {
    flex-grow: 1;
    margin-bottom: 1rem;
}

.slider-1 .swiper-button-prev,
.slider-1 .swiper-button-next {
  	color: var(--primary);
}

.slider-1 .swiper-button-prev:focus,
.slider-1 .swiper-button-next:focus {
	/* even if you can't see it chrome you can see it on mobile device */
	outline: none;
}

.slider-1 .swiper-button-prev {
	left: -14px;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2028%2044'%3E%3Cpath%20d%3D'M0%2C22L22%2C0l2.1%2C2.1L4.2%2C22l19.9%2C19.9L22%2C44L0%2C22L0%2C22L0%2C22z'%20fill%3D'%23707375'%2F%3E%3C%2Fsvg%3E");
	background-size: 18px 28px;
}

.slider-1 .swiper-button-next {
	right: -14px;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2028%2044'%3E%3Cpath%20d%3D'M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z'%20fill%3D'%23707375'%2F%3E%3C%2Fsvg%3E");
	background-size: 18px 28px;
}

.slider-1 .card {
	border: none;
	position: relative;
	background-color: transparent;
}

.slider-1 .card-image {
	width: 80px;
	height: 80px;
	margin-left: auto;
	margin-right: auto;
	border-radius: 50%;
	margin-bottom: 1.25rem;
}

.slider-1 .card-body {
  	padding: 0;
}

.slider-1 .testimonial-text {
  	margin-bottom: 0.75rem;
}

.slider-1 .testimonial-author {
	margin-bottom: 0;
	color: #252c38;
}

.slider-1 .avatar {
	width: 70px;
	height: 70px;
	border-radius: 50%;
}

/* Dropdown Menu */
.navbar .dropdown .dropdown-menu {
  	animation: fadeDropdown 0.2s; /* required for the fade animation */
}

@-webkit-keyframes fadeDropdown {
	0% {
		opacity: 0;
	}

	100% {
		opacity: 1;
	}
}

@keyframes fadeDropdown {
	0% {
		opacity: 0;
	}

	100% {
		opacity: 1;
	}
}


/**********************/
/*     Newsletter     */
/**********************/
.form-control-input,
.form-control-textarea {
	width: 100%;
	appearance: none;
	border-radius: 4px;
	font-size: 0.875rem;
	line-height: 1.5rem;
	padding-left: 1.5rem;
	padding-top: 0.775rem;
	padding-bottom: 0.775rem;
}


/******************************/
/*     Back To Top Button     */
/******************************/
#myBtn {
	z-index: 99;
	right: 20px;
	width: 52px;
	height: 52px;
	bottom: 20px;
	border: none;
	outline: none;
	display: none;
	position: fixed;
	cursor: pointer;
	border-radius: 50%;
	background-color: #323137;
}

#myBtn:hover {
  	background-color: #0f0f11;
}

#myBtn img {
	width: 18px;
	margin-left: 0.125rem;
	margin-bottom: 0.25rem;
}


/***********************/
/*     Extra Pages     */
/***********************/
.ex-header {
	padding-top: 8.5rem;
	padding-bottom: 4rem;
	background-color: var(--primary);
}

.ex-header h1 {
  	color: #fff;
}

.ex-basic-1 .list-unstyled .fas {
	font-size: 0.375rem;
	line-height: 1.625rem;
}

.ex-basic-1 .list-unstyled .flex-grow-1 {
  	margin-left: 0.5rem;
}

.ex-basic-1 .text-box {
	padding: 1.25rem 1.25rem 0.5rem 1.25rem;
	background-color: #f7f9fd;
}

.ex-cards-1 .card {
	border: none;
	background-color: transparent;
}

.ex-cards-1 .card .fa-stack {
	width: 2em;
	font-size: 1.125rem;
}

.ex-cards-1 .card .fa-stack-2x {
  	color: var(--secondary);
}

.ex-cards-1 .card .fa-stack-1x {
	width: 2em;
	color: #ffffff;
	font-weight: 700;
	line-height: 2.125rem;
}

.ex-cards-1 .card .list-unstyled .flex-grow-1 {
  	margin-left: 2.25rem;
}

.ex-cards-1 .card .list-unstyled .flex-grow-1 h5 {
	margin-top: 0.125rem;
	margin-bottom: 0.5rem;
}


/*************************/
/*     Media Queries     */
/*************************/
@media only screen and (max-width: 1024px) {
	.services,
	.work,
	.testimonial,
	.about,
	.contact,
	.plans {
		height: 100%;
	}
}

@media (min-width: 992px) {
	.slider-1 .swiper-container {
		width: 92%;
	}

	.slider-1 .swiper-button-prev {
		left: -16px;
		width: 22px;
		background-size: 22px 34px;
	}

	.slider-1 .swiper-button-next {
		right: -16px;
		width: 22px;
		background-size: 22px 34px;
	}

	/* Navigation */
	.navbar {
		box-shadow: none;
		transition: all 0.2s;
		padding-top: 1.75rem;
		background-color: transparent;
	}

	.navbar.top-nav-collapse {
		padding-top: 0.5rem;
		padding-bottom: 0.5rem;
		background-color: var(--primary);
		box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.025);
	}

	.offcanvas-collapse {
		position: static;
		top: auto;
		bottom: auto;
		left: auto;
		width: auto;
		padding-right: 0;
		padding-left: 0;
		background-color: transparent;
		overflow-y: visible;
		visibility: visible;
	}

	.offcanvas-collapse.open {
		transform: none;
	}

	.navbar .navbar-nav {
		margin-top: 0;
		margin-bottom: 0;
	}

	.navbar .nav-item .nav-link {
		padding-right: 0.75rem;
		padding-left: 0.75rem;
	}

	.navbar .dropdown-menu {
		padding-top: 0.75rem;
		padding-bottom: 0.875rem;
		box-shadow: 0 3px 3px 1px rgba(0, 0, 0, 0.08);
	}

	.navbar .dropdown-divider {
		width: 90%;
	}

	.navbar .social-icons {
		margin-left: 0.5rem;
	}

	.navbar .fa-stack {
		margin-right: 0;
		margin-left: 0.25rem;
	}
}

@media only screen and (max-width: 540px) {
	h1 {
		font-size: 30px;
	}

	.para {
		width: 100%;
	}

	.swiper-container {
		width: 92%;
	}

	.swiper-button-prev {
		left: -16px;
		width: 22px;
		background-size: 22px 34px;
	}

	.swiper-button-next {
		right: -16px;
		width: 22px;
		background-size: 22px 34px;
	}
}

section.plans {
    height: auto !important;
    min-height: 100vh;
}

/*************************/
/*     Cookie Notice     */
/*************************/

.cookie-notice {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background-color: var(--primary);
    border-bottom: 2px solid;
    border-image-slice: 1;
    border-image-source: var(--gradient);
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out; /* Уменьшил с 0.5s до 0.3s */
}

.cookie-notice.show {
    transform: translateY(0);
}

.cookie-content-fullwidth {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px; /* Немного уменьшил padding */
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-text {
    display: flex;
    align-items: center;
    gap: 12px; /* Уменьшил gap */
    flex: 1;
}

.cookie-icon {
    font-size: 20px; /* Немного уменьшил иконку */
    flex-shrink: 0;
}

.cookie-text p {
    color: white;
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

.cookie-text a {
    color: var(--secondary);
    text-decoration: underline;
    transition: color 0.2s ease; /* Ускорил transition */
}

.cookie-text a:hover {
    color: var(--tertiary);
}

.cookie-btn-fullwidth {
    background: var(--gradient);
    color: black;
    border: none;
    padding: 8px 20px; /* Немного уменьшил padding */
    border-radius: 0;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease; /* Ускорил transition */
    flex-shrink: 0;
    margin-left: 15px; /* Уменьшил отступ */
    box-shadow: 2px 2px 0px 0px var(--secondary); /* Уменьшил тень */
}

.cookie-btn-fullwidth:hover {
    transform: translate(2px, 2px); /* Уменьшил смещение */
    box-shadow: none;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .cookie-content-fullwidth {
        flex-direction: column;
        gap: 12px; /* Уменьшил gap */
        text-align: center;
        padding: 10px 15px; /* Уменьшил padding */
    }

    .cookie-text {
        flex-direction: column;
        gap: 8px; /* Уменьшил gap */
    }

    .cookie-btn-fullwidth {
        margin-left: 0;
        width: 100%;
        max-width: 180px; /* Немного уменьшил */
    }
}

@media (max-width: 480px) {
    .cookie-text p {
        font-size: 13px;
    }

    .cookie-btn-fullwidth {
        padding: 6px 16px; /* Уменьшил padding */
    }
}

/************************************/
/*     Privacy Policy Styles        */
/************************************/

.privacy-policy {
    background-color: var(--primary);
    min-height: 100vh;
}

.privacy-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 6rem 0 3rem 0;
    border-bottom: 2px solid;
    border-image-slice: 1;
    border-image-source: var(--gradient);
}

.privacy-header h1 {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.privacy-card {
    background: var(--primary-light);
    border: 2px solid transparent;
    border-image-slice: 1;
    border-radius: 0;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.privacy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.privacy-card:hover::before {
    transform: scaleX(1);
}

.privacy-card:hover {
    border-image-source: var(--gradient);
    border-width: 2px;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.privacy-card h2 {
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.privacy-card h4 {
    color: var(--tertiary);
    font-weight: 500;
    margin: 1.5rem 0 0.5rem 0;
    font-size: 1.1rem;
}

.privacy-card p {
    color: #e0e0e0;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.privacy-card ul {
    margin: 0.5rem 0 1rem 0;
}

.privacy-card li {
    color: #e0e0e0;
    line-height: 1.6;
    margin-bottom: 0.3rem;
    padding-left: 1rem;
    position: relative;
}

.privacy-card li::before {
    content: '•';
    color: var(--secondary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.privacy-card strong {
    color: var(--secondary);
}

.contact-info {
    background: var(--gradient);
    padding: 1.5rem;
    border-radius: 0;
    margin-top: 1rem;
}

.contact-info p {
    color: black !important;
    font-weight: 500;
    margin: 0.3rem 0;
}

/* Анимация появления карточек */
.privacy-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.privacy-card:nth-child(1) { animation-delay: 0.1s; }
.privacy-card:nth-child(2) { animation-delay: 0.2s; }
.privacy-card:nth-child(3) { animation-delay: 0.3s; }
.privacy-card:nth-child(4) { animation-delay: 0.4s; }
.privacy-card:nth-child(5) { animation-delay: 0.5s; }

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

/* Адаптивность */
@media (max-width: 768px) {
    .privacy-header {
        padding: 5rem 0 2rem 0;
        text-align: center;
    }

    .privacy-header h1 {
        font-size: 2.5rem;
    }

    .privacy-card {
        margin-bottom: 1rem;
    }

    .privacy-card h2 {
        font-size: 1.3rem;
    }
}

/************************************/
/*     Coverage Map Styles          */
/************************************/

.coverage-header {
    padding-top: 8.5rem;
    padding-bottom: 3rem;
    background-color: var(--primary);
}

.coverage-header h1 {
    color: #fff;
    margin-bottom: 1rem;
    text-align: center;
}

.coverage-header .lead {
    color: #ccc;
    font-size: 1.1rem;
    text-align: center;
}

.map-section {
    background-color: var(--primary-light);
    padding: 2rem 0;
    position: relative;
}

.map-container {
    border: 3px solid;
    border-image-slice: 1;
    border-image-source: var(--gradient);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    background: var(--primary);
    position: relative;
}

/* Стили для прямого iframe */
.map-container iframe {
    width: 100% !important;
    height: 635px !important;
    border: none !important;
    display: block !important;
}

.map-legend {
    background: var(--primary);
    padding: 20px;
    border: 2px solid;
    border-image-slice: 1;
    border-image-source: var(--gradient);
    margin-top: 20px;
    border-radius: 8px;
}

.legend-title {
    color: white;
    margin-bottom: 15px;
    font-weight: 500;
    font-size: 1.1rem;
}

.legend-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    color: white;
}

.legend-color {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    border: 2px solid #fff;
    border-radius: 3px;
    background-color: #ff6b6b;
}

.coverage-info {
    background-color: var(--primary);
    padding: 4rem 0;
}

.info-card {
    background: var(--primary-light);
    padding: 2rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    height: 100%;
    margin-bottom: 1.5rem;
    border-radius: 8px;
}

.info-card:hover {
    border-image-source: var(--gradient);
    border-width: 2px;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.info-card h4 {
    color: var(--secondary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.info-card p {
    color: #e0e0e0;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Адаптивность для карты */
@media (max-width: 768px) {
    .map-container iframe {
        height: 400px !important;
    }
}

@media (max-width: 480px) {
    .map-container iframe {
        height: 300px !important;
    }

    .map-legend {
        padding: 15px;
    }

    .legend-items {
        grid-template-columns: 1fr;
    }
}
/* Легенда поверх карты */
.map-overlay-legend {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1000;
    background: rgba(28, 38, 47, 0.95);
    border: 2px solid;
    border-image-slice: 1;
    border-image-source: var(--gradient);
    border-radius: 8px;
    padding: 12px;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    max-width: 200px;
}

.legend-mini {
    color: white;
}

.legend-title-mini {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--secondary);
    border-bottom: 1px solid var(--secondary);
    padding-bottom: 4px;
}

.legend-item-mini {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    line-height: 1.2;
}

.legend-color-mini {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    border: 1px solid #fff;
    border-radius: 2px;
    background-color: #ff6b6b;
    flex-shrink: 0;
}

/* Скрываем основную легенду на десктопе */
.map-legend-mobile {
    display: none;
}

/* Адаптивность */
@media (max-width: 768px) {
    .map-overlay-legend {
        display: none; /* Скрываем легенду поверх карты на мобильных */
    }

    .map-legend-mobile {
        display: block; /* Показываем основную легенду на мобильных */
    }

    .map-overlay-legend {
        top: 10px;
        right: 10px;
        padding: 8px;
        max-width: 150px;
    }

    .legend-title-mini {
        font-size: 0.8rem;
    }

    .legend-item-mini {
        font-size: 0.75rem;
    }

    .legend-color-mini {
        width: 12px;
        height: 12px;
    }
}

/* Убедимся, что контейнер карты имеет relative позиционирование */
.map-container {
    position: relative;
    border: 3px solid;
    border-image-slice: 1;
    border-image-source: var(--gradient);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    background: var(--primary);
}

/* Стили для прямого iframe */
.map-container iframe {
    width: 100% !important;
    height: 635px !important;
    border: none !important;
    display: block !important;
    position: relative;
    z-index: 1;
}

/************************************/
/*     Documents styles         */
/************************************/

/* Светлая плашка в стиле сайта */
.full-document-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 1px solid #dee2e6;
    border-left: 4px solid #20c997;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.full-document-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.document-title {
    color: #2c3e50 !important;
    font-weight: 600;
}

.document-description {
    color: #6c757d !important;
}

.document-info {
    border-top: 1px solid #dee2e6;
    padding-top: 10px;
    margin-top: 10px;
}

.document-info small {
    color: #6c757d !important;
}

.document-download-btn {
    background: linear-gradient(135deg, #20c997, #17a2b8);
    color: #fff !important;
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.document-download-btn:hover {
    background: linear-gradient(135deg, #1ba87e, #148ea1);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(32, 201, 151, 0.4);
}

/****************************/
/*     Cabinet Buttons      */
/****************************/
.cabinet-card .btn-tertiary {
    color: white;
    border-radius: 8px;
    border: 2px solid var(--secondary);
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: left;
    backdrop-filter: blur(10px);
}

.cabinet-card .btn-tertiary:hover {
    color: white;
    background: var(--gradient);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(14, 233, 81, 0.4);
}

/* Или вариант с белым фоном */
.cabinet-card .btn-tertiary.white-style {
    color: var(--primary);
    border: 2px solid var(--secondary);
    background: white;
}

.cabinet-card .btn-tertiary.white-style:hover {
    color: white;
    background: var(--gradient);
}

/* Или градиентный вариант */
.cabinet-card .btn-tertiary.gradient-style {
    color: white;
    border: none;
    background: var(--gradient);
    box-shadow: 0 4px 15px rgba(14, 233, 81, 0.3);
}

.cabinet-card .btn-tertiary.gradient-style:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(14, 233, 81, 0.5);
}

