/* Общие стили */
body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    background: url('../../static/img/building.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    color: #fff;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.379);
    z-index: -1;
}

/* Header */
.header {
    background: rgba(179, 202, 231, 0.7);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    height: 8vh;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(8px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 8%;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    overflow: hidden;
}

.logo-img {
    width: 40px;
    height: auto;
    max-height: 100%;
    margin-right: 10px;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    white-space: nowrap;
    color: #fff;
}

/* Навигация */
.navbar ul {
    display: flex;
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.navbar ul li {
    position: relative;
}

.navbar ul li a {
    text-decoration: none;
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.navbar ul li a:hover {
    background-color: rgba(255, 255, 255, 0.5);
    color: #000;
}

/* Dropdown меню */
.navbar ul li ul.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    background: rgba(235, 232, 232, 0.837);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    z-index: 1000;
    padding: 5px 0;
    white-space: nowrap;
}

.navbar ul li:hover > ul.dropdown {
    display: block;
}

.navbar ul li ul.dropdown li a {
    padding: 10px 20px;
    display: block;
    text-align: left;
    white-space: nowrap;
    color: #000;
}

.navbar ul li ul.dropdown li a:hover {
    background-color: rgba(179, 202, 231, 0.7);
    color: #fff;
}

/* Флаги */
.flag {
    width: 24px;
    height: auto;
    vertical-align: middle;
    margin: 0 5px;
}

/* Кнопка меню для мобильных устройств */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* Мобильные стили */
@media (max-width: 768px) {
    .menu-toggle {
        display: block; /* Показываем кнопку бургер-меню */
    }

    .navbar {
        display: none; /* Скрываем меню по умолчанию */
        flex-direction: column;
        width: 100%;
        background-color: rgb(179, 202, 231); /* Темный фон для меню */
        position: absolute;
        top: 8vh; /* Ниже заголовка */
        left: 0;
        z-index: 1000;
    }

    .navbar.active {
        display: flex; /* Показываем меню, если оно активно */
    }

    .navbar ul {
        flex-direction: column; /* Размещаем элементы вертикально */
        gap: 10px;
        padding: 10px;
    }

    .navbar ul li {
        width: 100%; /* Элементы занимают всю ширину */
    }

    .navbar ul li a {
        padding: 10px 20px;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar li a {
        padding: 10px;
        border-bottom: 1px solid #444;
        color: white;
        display: block;
        text-decoration: none;
    }

    .navbar li a:hover {
        background-color: #444;
    }
}


/* ============================================MAIN============================================ */
/* Основные стили */
.backgr {
    background-color: white;
    max-width: 900px;
    width: 90%;
    height: 600px;
    border-radius: 45px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000;
    padding: 20px;
    box-sizing: border-box;


    
}

/* Фото */
.photo {
    background: url('../med/img/b0d8d800-6367-4fa2-9641-5539ac5ccc7b.jfif') no-repeat center center;
    background-size: cover;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    position: absolute;
    top: 20%;
    left: 20%;
    transform: translate(-50%, -50%);
}

/* Выравнивание текста */
.name, .whtsh {
    text-align: center;
    margin-top: 20px;
    margin-left: 45%;
}

/* Кнопка */
.license {
    display: block;
    width: 60%;
    max-width: 300px;
    margin: 20px 28rem;
    padding: 10px 20px;
    background-color: rgb(179, 202, 231);
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    border-radius: 50px;
    text-align: center;
    transition: background-color 0.3s, transform 0.3s;
}

.license:hover {
    background-color: #7c92a5;
    transform: scale(1.02);
}

/* Контентные блоки */
.more, .more2 {
    text-align: center;
    margin: 0 auto;
    color: #000;
}

.more ul, .more li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.h2 {
    color: #000;
}

.task {
    width: 95%;
    text-align: center;
    margin: 50px 0;
    font-size: 14px;
    color: #000;
}

.block.img, .block.img2, .block.inf {
    max-width: 900px;
    width: 90%;
    height: 500px;
    position: relative;
    margin: 150px auto;
    border-radius: 45px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 20px;
    box-sizing: border-box;
}

.block.img {
    background: url('../med/img/kab.jfif') no-repeat center center/cover;
}

.block.img2 {
    background: url('../med/img/kab2.jfif') no-repeat center center/cover;
}

.block.inf {
    background-color: #fff;
    color: #000;
    font-size: 17px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.block.inf .text {
    width: 90%;
}

/* Медиа-запросы */
@media (max-width: 1036px) {
    .backgr {
        width: 100%;
        height: 80%;
    }
    .photo {
        width: 150px;
        height: 150px;
    }
    .license {
        width: 80%;
    }
    .block.img, .block.img2, .block.inf {
        width: 95%;
        
        padding: 15px;
    }
}

@media (max-width: 788px) {
    .photo {
        width: 150px;
        height: 150px;
    }
    .license {
        width: 70%;
        font-size: 14px;
    }
    .block.img, .block.img2, .block.inf {
        width: 100%;
        font-size: 10px;
        padding: 10px;
    }
}
/* ================================footer================================================ */
.footer {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
	padding: 1.75rem;
	background-color: #2d2d2d;
}

.divider {
	width: 2px;
	background-color: #fff;
}
.map {
	border-radius: 10px;
	flex: 2;
}

.fnav {
	min-width: 320px;
}

@media (max-width: 1100px) {
	.divider:last-of-type {
		display: none;
	}
	.map {
		width: 100%;
		min-height: 60vh;
	}
}
@media (max-width: 768px) {
	.footer {
		flex-direction: column;
	}
	.fnav {
		min-width: min-content;
	}
	.divider {
		display: none;
	}
	.map {
		width: 100%;
	}
}

.fcont {
	height: 50%;
}
.ram {
	margin-top: -5%;
}

.footlog {
	margin: 3% 1.5%;
	height: 18vh;
	width: auto;
}

.foot.cont {
	color: white;
	margin-top: 0;
	margin-left: 2.5%;
}

.foot.adres {
	color: white;
	margin-top: 1%;
	margin-left: 2.5%;
}

.foot.social {
	color: white;
	margin-top: 1%;
	margin-left: 2.5%;
}

.foot.email {
	color: white;
	margin-top: 4%;
	margin-left: 2.5%;
}

.footabout {
	color: white;
	margin-left: 25%;
	margin-top: -2.5%;
}

.vline {
	position: absolute;
	background-color: #8797ab;
	width: 0.1%;
	height: 85%;
	margin: 5% 14%;
}
.vline2 {
	position: absolute;
	background-color: #8797ab;
	width: 0.1%;
	height: 85%;
	margin: 5% 25%;
}
.hline {
	position: absolute;
	background-color: #8797ab;
	width: -50%;
	height: 0.1%;
	margin: 5% 14%;
}

/* ===================================card===================================================== */
.card {
	display: flex;
	gap: 1rem;
}

/* for all social containers*/
.socialContainer {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: rgb(44, 44, 44);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	transition-duration: 1s;
}

/* Instagram */
.containerOne:hover {
	background-color: #d62976;
	transition-duration: 0.3s;
}

/* Twitter */
.containerTwo:hover {
	background-color: #ee0000;
	transition-duration: 0.3s;
}

/* LinkedIn */
.containerThree:hover {
	background-color: #0072b1;
	transition-duration: 0.3s;
}

/* WhatsApp */
.containerFour:hover {
	background-color: #128c7e;
	transition-duration: 0.3s;
}

.socialContainer:active {
	transform: scale(0.9);
	transition-duration: 0.3s;
}

.socialSvg {
	width: 20px;
}

.socialSvg path {
	fill: rgb(255, 255, 255);
}

.socialContainer:hover .socialSvg {
	animation: slide-in-top 0.3s both;
}

@keyframes slide-in-top {
	0% {
		transform: translateY(-50px);
		opacity: 0;
	}

	100% {
		transform: translateY(0);
		opacity: 1;
	}
}

/* ================================footer nav===================================================== */
.footer-nav {
	display: flex;
	flex-direction: column;
}

.footer-nav h3 {
	font-size: 18px;
	margin-bottom: 10px;
	color: #f4a261;
}

.footer-nav ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer-nav ul li {
	margin-bottom: 5px;
}

.footer-nav ul li a {
	color: #fff;
	text-decoration: none;
	transition: color 0.3s;
}

.footer-nav ul li a:hover {
	color: #fff;
}
