/* Вместо Neusa Next Pro используем похожий шрифт Montserrat */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #D81021;
    --light: #F1F1F1;
    --white: #ffffff;
    --dark: #1A1A1A;
    --gray: #333333;
    --light-gray: #777777;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    background-color: var(--light);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    overflow-x: hidden;
}
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}
h1 {
    font-size: 2.4rem;
    margin-bottom: 3rem;
}
h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}
h2:after {
    content: '';
    position: absolute;
    width: 100px;
    height: 4px;
    background-color: var(--primary);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}
h3 {
    font-size: 2.0rem;
    margin-bottom: 3rem;
    position: relative;
}
.section-title {
    font-size: 2.4rem;
    color: var(--dark);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
    text-align: center;
}
.section-title:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background-color: var(--primary);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}
p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}
.container {
    background-color: var(--white);
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px;
    border-radius: 15px;
}
.btn {
    display: inline-block;
    padding: 15px 35px;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}
.btn:hover {
    background-color: #b80c1a;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    color: white;
}
section {
    padding: 30px 0;
}

.top-margin {
    padding: 130px 0 20px;
}

/* Шапка и навигация */
header {
    background-color: var(--white);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.header-contacts {
    width: 390px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-phone a {
    text-decoration: none;
    font-size: 1.8rem;
    color: var(--dark);
}
.header-phone a:hover {
    color: var(--primary);
}

/* Стили для логотипа */
.logo-image {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}
.logo-image:hover {
    transform: scale(1.05);
}
nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}
nav ul li {
    margin-left: 30px;
}
nav ul li a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 1.1rem;
}
nav ul li a:hover {
    color: var(--primary);
}
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}




.slogan {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 1px #ffffff;
}

/* Карта */
.map-container {
    position: relative;
    width: 100%;
    padding-bottom: 50%; /* Соотношение сторон 2:1 (ширина:высота) */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid #d1d1d1;
}
.map-container iframe,
.map-container .yandex-map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Услуги */
.services {
    background-color: var(--light);
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.service-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}
.service-card:hover {
    transform: translateY(-10px);
}
.service-icon {
    background-color: var(--primary);
    color: white;
    font-size: 2.5rem;
    padding: 30px;
    text-align: center;
}
.service-content {
    padding: 30px;
}
.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Преимущества */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.advantage-card {
    text-align: center;
    padding: 30px;
}

.advantage-icon {
    background-color: var(--light);
    color: var(--primary);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    font-size: 2rem;
    margin: 0 auto 20px;
}

.advantage-card h3 {
    font-size: 1.4rem;
}

/* Контакты */
.contacts h1:after {
    background-color: var(--primary);
}
.contacts h2:after {
    background-color: var(--primary);
}
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}
.contact-info h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 20px;
}
.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 15px;
}

.contact-icon {
    background-color: var(--primary);
    color: white;
    width: 50px;
    height: 50px;
    min-width: 50px; 
    min-height: 50px; 
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0; 
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}
.contact-text {
    flex: 1;
    padding-top: 12px; 
    line-height: 1.4;
}
.tel {
    display: flex;
}
.tel a {
    font-size: 1.1rem;
}
.contact-text p {
    margin: 0;
}
.contacts a {
    text-decoration: none;
    color: #5e0109;
    /*color: var(--dark); */
}
.contacts a:hover {
    color: var(--primary);
}
.map-icon {
    height: 30px;
    width: auto;
    margin: 3px;
}
.map-icon:hover {
    transform: translateY(-1px);
    opacity: 0.8;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: none;
    border-radius: 5px;
    background-color: #2a2a2a;
    color: white;
    font-family: 'Montserrat', sans-serif;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid var(--primary);
}

/* Футер */
footer {
    padding: 20px 20px 0;
    text-align: center;
}

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

.copyright {
    font-size: 0.9rem;
}
.copyright p {
    margin-bottom: 0;
    font-size: 1rem;
}
.social-links {
    display: flex;
    gap: 25px;
}

.social-links a { 
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

/* Telegram - голубой цвет */
.social-links a[href*="t.me"] i {
    color: #0088cc;
}

/* WhatsApp - зеленый цвет */
.social-links a[href*="wa.me"] i {
    color: #25D366;
}

.social-links a:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

/* Кнопка "Наверх" */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(216, 16, 33, 0.3);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}
.scroll-to-top:hover {
    background-color: #b80c1a;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(216, 16, 33, 0.4);
}

/* Анимация стрелки */
.scroll-to-top i {
    transition: transform 0.3s ease;
}
.scroll-to-top:hover i {
    transform: translateY(-2px);
}

/* ******************************************************************** */
    /* Стили для выпадающего меню контактов */
.dropdown {
  position: relative;
  display: inline-block;
  /* padding-left: 6px; */
}

/* Стиль для кнопки с номером телефона (триггер меню) */
.dropdown .dropbtn.header-phone {
  background: none;
  padding: 0;
  font-size: 1.8rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.dropdown a {
    color: #5e0109;
}
.dropdown a:hover {
    color: var(--primary);
}

/* Контейнер скрытого выпадающего меню */
.dropdown-content {
  display: none;
  position: absolute;
  right: 0; /* Меню открывается вправо от номера */
  top: 100%; /* Ниже номера телефона */
  background-color: #f9f9f9;
  min-width: 220px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  border-radius: 8px;
  z-index: 1000;
  overflow: hidden;
  border: 1px solid #ffd0d4;
}

/* Показываем меню при добавлении класса .show */
.dropdown-content.show {
  display: block;
}

/* Стили для каждого варианта в меню */
.dropdown-option {
  color: #333;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
  border-bottom: 1px solid #eee;
  transition: all 0.2s ease;
}

/* Убираем границу у последнего пункта */
.dropdown-option:last-child {
  border-bottom: none;
}

/* Эффект при наведении на пункт меню */
.dropdown-option:hover {
  background-color: #f1f1f1;
  color: #D81021; /* Ваш фирменный красный цвет */
}

/* Стили для иконок внутри меню */
.dropdown-option i {
  margin-right: 10px;
  width: 20px;
  text-align: center;
}

/* Специфичные цвета для иконок мессенджеров внутри меню */
.dropdown-option[href*="wa.me"] i {
  color: #25D366; /* Цвет WhatsApp */
}
.dropdown-option[href*="t.me"] i {
  color: #0088cc; /* Цвет Telegram */
}
.dropdown-option[href^="tel:"] i {
  color: #34a853; /* Цвет для телефона */
}

/* Адаптивность */
@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }    
    h2 {
        font-size: 2.2rem;
    } 
    .scroll-to-top {
        bottom: 25px;
        right: 25px;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }
    .header-contacts {
        width: inherit;
    }
    .header-phone a {
        font-size: 1.2rem;
    }
    .dropdown .dropbtn.header-phone {
        font-size: 1.2rem;
    }
    .container {
        padding: 10px 10px;
        border-radius: 10px;
    }
    .section-title {
        font-size: 2rem;
    } 
    .social-links a {
        font-size: 1.2rem;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    nav {
        width: 100%;
    }    
    nav ul {
        flex-direction: column;
        display: none;
    }    
    nav ul.active {
        display: flex;
    }    
    nav ul li {
        margin: 0 0 10px 0;
    }    
    .mobile-menu-btn {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
    }
    .map-container {
        padding-bottom: 75%; 
    }
    section {
        padding: 25px 10px;
    }
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    .contacts-grid {
        gap: 30px;
    }    
    .contact-item {
        gap: 12px;
    }    
    .contact-icon {
        width: 45px;
        height: 45px;
        min-width: 45px;
        min-height: 45px;
        font-size: 1.1rem;
    }    
    .contact-text {
        padding-top: 10px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }    
    h2 {
        font-size: 1.8rem;
    }
    .section-title {
        font-size: 1.8rem;
    }  
    .map-container {
        padding-bottom: 100%; 
    }
   
    .footer-container {
        flex-direction: column;
        gap: 20px;
    }    
    .btn {
        padding: 12px 25px;
    }

    /* Адаптация логотипа для мобильных */
    .logo-image {
        height: 40px; /* Уменьшаем высоту логотипа на мобильных */
    }

    .scroll-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }

    .contact-item {
        gap: 10px;
    }    
    .contact-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        font-size: 1rem;
    }    
    .contact-text {
        padding-top: 8px;
        font-size: 0.95rem;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 400px) {
    .logo-image {
        height: 35px; 
    }
}

/* ============================================= */
/* СТИЛИ ДЛЯ СТРАНИЦЫ 404  403                   */
/* ============================================= */

.error-number {
    font-size: 8rem;
    font-weight: 600;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 20px;
    text-shadow: 3px 3px 0 rgba(216, 16, 33, 0.1);
    text-align: center;
}
.error-description {
    font-size: 1.2rem;
    color: var(--light-gray);
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.error-url {
    background-color: #f9f9f9;
    border-left: 4px solid var(--primary);
    padding: 20px;
    border-radius: 8px;
    margin: 0 20px 40px 20px;
    text-align: left;
}
.error-url-label {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
    font-size: 1rem;
}
.error-url-value {
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    color: var(--gray);
    word-break: break-all;
    line-height: 1.4;
    padding: 10px;
    background-color: white;
    border-radius: 4px;
    border: 1px solid #eaeaea;
}
.error-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.btn-outline {
    display: inline-block;
    padding: 15px 35px;
    background-color: transparent;
    color: var(--primary);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid var(--primary);
    cursor: pointer;
    font-size: 1rem;
}
.btn-outline:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}


/* Адаптивность для страницы 404 */
@media (max-width: 768px) {
    .error-number {
        font-size: 6rem;
    }    
       
    .error-description {
        font-size: 1.1rem;
        padding: 0 10px;
    }    
    .error-actions {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }    
    .btn, .btn-outline {
        width: 100%;
        max-width: 300px;
        text-align: center;
        padding: 14px 25px;
    }
}

@media (max-width: 480px) {
    .error-number {
        font-size: 5rem;
    }    
      
    .error-description {
        font-size: 1rem;
    }    
    .error-url {
        padding: 15px;
    }
    
}

/* Анимация появления */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
