/* Основные стили */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --primary-color: #016a9c;
    --secondary-color: #FE4035;
    --dark-color: #202d3e;
    --light-color: #f4f4f4;
    --danger-color: #dc3545;
    --success-color: #28a745;
    --max-width: 1200px;
    --font-logo: "Bebas Neue", sans-serif;
    --font-h1: "Montserrat", sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
	font-family: var(--font-h1);
  	font-weight: 400;
  	font-style: normal;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #fff;
    overflow-x: hidden;
}

h1, h2, h3 {
    margin-bottom: 1rem;
    line-height: 1.3;
    font-family: var(--font-h1);
    text-transform: uppercase;
    font-weight: 600;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--dark-color);
}

img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    overflow: hidden;
}

.btn {
    display: inline-block;
    background: var(--secondary-color);
    color: #fff;
    padding: 1rem 2rem;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

section {
    padding: 5rem 0;
}

section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 4rem;
    position: relative;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 6px;
    background: var(--secondary-color);
}

/* Навигационное меню */
.navbar {
    background-color: transparent;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo h1 {
    font-size: 2rem;
    letter-spacing: 0.3rem;
    font-weight: 400;
  	font-style: normal;
    color: #fff;
    margin: 0;
    /*z-index: 101;*/
    position: relative;
    font-family: var(--font-logo);
    text-shadow: 0px 0px 5px rgba(0,0,0,0.9);
}
.navbar .logo h1 span {
	color: var(--secondary-color);
}

.navbar.sticky {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar.sticky .logo h1 {
    color: var(--dark-color);
    text-shadow: none;
}
.navbar.sticky .nav-menu a {
    color: var(--dark-color);
}
.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu li {
    margin-left: 1.5rem;
}

.nav-menu a {
    color: #fff;
    font-weight: 500;
    position: relative;
    padding-bottom: 0.5rem;
    transition: color 0.3s ease;
    font-size: 1rem;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Кнопка мобильного меню */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
    position: relative;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.navbar.sticky .menu-toggle span {
    background-color: var(--dark-color);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero секция с параллакс-эффектом */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.hero {
	/*height: 100vh;*/
    height: auto;
    padding: 340px 0 260px 0;
    text-align: center;
	display: flex;
    align-items: center;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.85)), url('../img/bg-01.jpg');
    position: relative;
}

.hero-content {
    color: #fff;
    max-width: 800px;
    margin: 0 auto;
}
.hero-content img {
	max-width: 300px;
	height: auto;
	margin-bottom: 30px;
}

.hero-content h1 {
    font-size: 3.4rem;
    margin-bottom: 30px;
    font-weight: 600;
    letter-spacing: 0.2rem;
    line-height: 1.4;
    text-shadow: 0px 0px 20px rgba(0,0,0,0.9);
    text-transform: none;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    letter-spacing: 0.1rem;
}

/* О компании */
.about-grid {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 3rem;
    align-items: center;
}
.about-img img {
	border-radius: 10px;
}
.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}
.about-content h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-transform: none;
}

/* Преимущества */
.advantages {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)), url('../img/bg-02.jpg');
    color: #fff;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.advantage-card {
    background: rgba(255, 255, 255, 0.15);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-10px);
}

.advantage-card i {
    font-size: 4rem;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

/* Услуги */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card img {
    height: 200px;
    object-fit: cover;
}

.service-card h3, .service-card p {
    padding: 0 1.5rem;
}

.service-card h3 {
    margin-top: 1.5rem;
}

.service-card p {
    margin-bottom: 1.5rem;
}

.service-cta {
    text-align: center;
    margin-top: 3rem;
}

/* Партнеры */
.partners {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)), url('../img/bg-03.jpg');
    color: #fff;
}

.partners-slider {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
	grid-template-rows: repeat(2, 1fr);
    gap: 3rem;
}

.partner-logo {
    height: auto;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    padding: 5%;
}

.partner-logo img {
    max-width: 100%;
    max-height: 160px;
    object-fit: contain;
    margin: 20px 0;
}
.partner-logo h5 {
    text-align: center;
    margin-bottom: 5px;
    color: var(--dark-color);
    font-size: 1.1rem;
    font-weight: 600;
}
.partner-logo p {
    text-align: center;
    margin-bottom: 20px;
    color: var(--dark-color);
    font-size: 1rem;
    font-weight: 500;
}

/* FAQ */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.faq-item {
    background: var(--light-color);
    border-radius: 5px;
    overflow: hidden;
}

.faq-item details {
    padding: 0;
}

.faq-item summary {
    padding: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    position: absolute;
    right: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-item details[open] summary::after {
    transform: rotate(180deg);
}

.faq-item p {
    padding: 0 1.5rem 1.5rem;
}

/* Контакты */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: var(--primary-color);
}

.map {
    margin-top: 2rem;
    border-radius: 10px;
    overflow: hidden;
}

.contact-form form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group:nth-child(5) {
    grid-column: span 2;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.contact-form button {
    grid-column: span 2;
    justify-self: start;
}

/* Футер */
.footer {
    background-color: var(--dark-color);
    color: #fff;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
}

.footer-logo h2 {
    margin-bottom: 1rem;
}

.footer-nav ul li,
.footer-contact p {
    margin-bottom: 0.5rem;
}

.footer-nav a {
    color: #fff;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--secondary-color);
}

.footer-contact i {
    margin-right: 0.5rem;
    color: var(--secondary-color);
}

.copyright {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.copyright .developer {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.75;
}
.copyright .developer a {
    color: inherit;
    text-decoration: underline;
}
/* Сообщения почта*/
.message {
    padding: 15px 25px;
    margin: 20px 0;
    border-radius: 5px;
    font-size: 1.1em;
    font-family: Arial, sans-serif;
}
.success {
    background: #e6ffe6;
    border: 1px solid #6ac46a;
    color: #206920;
}
.error {
    background: #ffe6e6;
    border: 1px solid #e66060;
    color: #9c2121;
}