@font-face {
	font-family: Regular;
	src: url(../fonts/fonts/Montserrat-Regular.ttf);
}

@font-face {
	font-family: Medium;
	src: url(/fonts/fonts/Montserrat-Medium.ttf);
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	background-color: #202020;
background-image: url("/img/background1.png");
	
    overflow: hidden;
}

body {
	color: #fcd34d;
	line-height: 1.6;
	background-image: url("/img/background1.png");
}

a {
	text-decoration: none;
	color: inherit;
}

img {
	max-width: 100%;
	display: block;
}

header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px;
	/* border-bottom: 1px solid #fcd34d; */
	color: #B4B4B4;
}

.logo {
	width: 50px;
	height: 50px;
	transition: transform 0.3s ease;
}

.logo:hover {
	transform: scale(2) rotate(1turn);
}

nav ul {
	list-style: none;
	display: flex;
	gap: 50px;
	font-size: 14px;
	font-family: Regular;
	transition: transform 0.3s ease;
}

nav ul li:hover {
	color: #facc15;
	cursor: pointer;
	transform: scale(1.05);
}

.contacts {
	display: flex;
	align-items: center;
	gap: 15px;
	font-size: 14px;
	font-family: Regular;

	transition: transform 0.3s ease;
}

.contacts:hover {
	color: #fbbf24;
	transform: scale(1.1);
}

.icon {
	width: 20px;
	height: 20px;
}

.mobile-menu {
	display: none;
}

@media (max-width: 768px) {
	.mobile-menu {
		display: block;
		font-size: 18px;
		cursor: pointer;
	}
	nav ul {
		display: none;
	}
}

.hero {
	text-align: center;
	padding: 40px 20px;
	font-family: Medium;
	transition: transform 0.3s ease;
}

.hero:hover {

}

.hero h1 {
	font-size: 2rem;
	font-weight: bold;
	margin-bottom: 20px;
	transition: transform 0.3s ease;
}

.hero h1:hover {
	color: #ffc400;
	
}

.buttons {
	display: flex;
	justify-content: center;
	gap: 15px;
	flex-wrap: wrap;
}

.buttons h1:hover {
	background-color: #fbbf24;
	transform: scale(1.01);
}


.btn {
	background-color: #fbbf24;
	color: #000;
	padding: 10px 20px;
	border-radius: 20px;
	font-weight: bold;
	transition: background-color 0.5s ease;
	
	font-family: Regular;
}

.hero .btn a {
	background-color: #fbbf24;
}

.description {
	margin-top: 20px;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
	font-size: 1rem;
	font-family: Regular;
	
	color: white;
}

.description:hover {

}

.services {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 30px;
	padding: 40px 20px;
	margin-left: 100px;
}

.card {
	border: 1px solid #fcd34d;
	border-radius: 10px;
	padding: 20px;
	text-align: left;
	font-family: Medium;
	transition: transform 0.3s ease;
	max-width: 416px;
	min-height: 294px;
	color: ;

}

.card:hover {
	transform: scale(1.05);
}

.card h2 {
	font-size: 1.2rem;
	margin-top: 10px;
	margin-bottom: 10px;
	color: #B4B4B4;
	font-family: Medium;
}

.card p {
	font-size: 0.9rem;
	margin-bottom: 15px;
	color: #B4B4B4;
	font-family: Regular;
}

.card .btn {
	align-items: center;
	text-align: center;
	max-height: 56px;
	max-width: 160px;
}

.card-portfolio {
	background-color: #fbbf24;
}

footer {
	margin-top: 150px;
	padding: 20px;
	font-size: 0.9rem;
	color: rgb(122, 122, 122);
	font-family: Regular;
}

footer b {
	color: #FFCC00;
	font-family: Regular;
	margin-left: 34px;
}

.stars {
	display: flex;
	justify-content: center;
	gap: 5px;
	margin: 10px 0;
}

.star {
	width: 15px;
	height: 15px;
	transition: transform 0.3s ease;
}

.star:hover {
	transform: scale(1.2) rotate(15deg);
}

@media (max-width: 768px) {
	* {
		overflow: visible;
	}
	nav ul {
		flex-direction: column;
		align-items: flex-start;
	}

	.hero h1 {
		font-size: 2rem;
	}

	.services {
		grid-template-columns: 1fr; 
	}

	.card {
		margin: 0 auto; 
	}

	.star {
		width: 12px;
		height: 12px;
	}
}

/* Добавьте эти стили в конец файла, заменив существующие @media правила */

@media (max-width: 768px) {
    /* * {
        overflow-x: hidden;
    } */
    
    .no-scroll {
        overflow: hidden;
    }
    
    .mobile-menu {
        display: block;
        font-size: 24px;
        cursor: pointer;
        z-index: 101;
    }
    
    nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #202020;
        transform: translateY(-100%);
        transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        z-index: 99;
        padding-top: 80px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    nav.show {
        transform: translateY(0);
    }
    
    nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px;
        width: 100%;
    }
    
    nav ul li {
        opacity: 0;
        transform: translateY(-20px);
        transition: all 0.4s ease;
    }
    
    nav.show ul li {
        opacity: 1;
        transform: translateY(0);
        transition-delay: calc(0.1s * var(--i));
    }
    
    .contacts {
        display: none;
    }
    
    .services {
        grid-template-columns: 1fr;
        margin-left: 0;
    }
}