/* desktop.css */
/* Сброс базовых отступов */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Open Sans', sans-serif;
    color: #333;
    background-color: #fff;
    line-height: 1.5;
}
/* Основная цветовая палитра */
:root {
    --color-darkblue: #002855;
    --color-accent: #ff6600;
    --color-light-bg: #f5f9fc;
    --color-white: #fff;
}
/* Общие контейнеры */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
/* ШАПКА */
header {
    background: var(--color-darkblue);
    color: var(--color-white);
    width: 100%;
}
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 5px 15px;
    font-size: 0.9rem;
}
.contact-wrapper {
    text-align: right;
}
.language-switch a {
    color: var(--color-white);
    text-decoration: none;
    margin-right: 10px;
    cursor: pointer;
    padding: 2px 5px;
    transition: all 0.3s ease;
}
.top-contacts {
    color: var(--color-white) !important;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.contact-link {
    color: var(--color-white) !important;
    text-decoration: none;
}
.top-contacts div {
    color: var(--color-white);
    text-decoration: none;
}
.address {
    color: var(--color-white);
    text-decoration: none;
}
.language-switch a.active {
    color: #007bff;
    font-weight: bold;
    pointer-events: none;
}
.language-switch a:hover {
    opacity: 0.9;
}
.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
}
.logo a {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    color: var(--color-white);
    text-decoration: none;
    font-weight: 600;
}
.main-nav ul {
    display: flex;
    list-style: none;
}
.main-nav li {
    margin-left: 20px;
}
.main-nav a {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 600;
}
.main-nav a:hover {
    text-decoration: underline;
}
/* HERO-БЛОК */
.hero {
    background: url('/images/Background.webp') center/cover no-repeat;
    color: var(--color-white);
    text-align: center;
    padding: 100px 20px;
    position: relative;
}
.hero::before {
    content: "";
    background: rgba(0,0,0,0.7);
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
}
.hero-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    margin-bottom: 20px;
}
.hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}
.hero-buttons a {
    display: inline-block;
    margin: 0 10px;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
}
.btn-cta {
    background: var(--color-accent);
    color: var(--color-white);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
}
.btn-cta:hover {
    opacity: 0.9;
}
.btn-primary {
    background: var(--color-accent);
    color: var(--color-white);
}
.btn-primary:hover {
    opacity: 0.9;
}
.btn-secondary {
    background: var(--color-white);
    color: var(--color-darkblue);
}
.btn-secondary:hover {
    opacity: 0.9;
}
/* БЛОК "О компании" */
.about-short {
    padding: 60px 0;
}
.about-short h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
}
.about-short p {
    max-width: 800px;
    margin: 0 auto 40px auto;
    text-align: center;
}
.advantages {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}
.adv-item {
    flex: 1 1 200px;
    min-width: 200px;
    max-width: 250px;
    text-align: center;
}
.adv-item img {
    width: 60px;
    height: auto;
    margin-bottom: 15px;
}
.adv-item h3 {
    font-size: 1.1rem;
}
/* БЛОК "УСЛУГИ" */
.services {
    padding: 60px 0;
    background: var(--color-light-bg);
}
.services h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
}
.services-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    max-width: 1260px;
    margin: 0 auto;
}
.service-card {
    flex: 1 1 calc(25% - 30px);
    max-width: 270px;
    background: var(--color-white);
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
    text-align: center;
}
.service-card img {
    width: 60px;
    height: auto;
    margin-bottom: 15px;
}
.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.service-card p {
    font-size: 0.95rem;
    margin-bottom: 20px;
}
.btn-more {
    text-decoration: none;
    color: var(--color-accent);
    font-weight: 600;
}
.btn-more:hover {
    opacity: 0.9;
}
/* БЛОК "ПОЧЕМУ ВЫБИРАЮТ НАС" */
.why-us {
    padding: 60px 0;
}
.why-us h2 {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    margin-bottom: 40px;
}
.why-us-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}
.why-item {
    flex: 1 1 200px;
    max-width: 250px;
    text-align: center;
}
.why-item img {
    width: 60px;
    margin-bottom: 10px;
}
/* БЛОК "КЕЙСЫ" */
.cases {
    padding: 60px 0;
}
.cases h2 {
    text-align: center;
    font-size: 2rem;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 30px;
}
.cases-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}
.case-item {
    background: var(--color-white);
    border-left: 5px solid var(--color-accent);
    padding: 20px;
}
/* БЛОК "ОТЗЫВЫ" */
.reviews {
    padding: 60px 0;
    background: var(--color-light-bg);
}
.reviews h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
}
.review-item {
    max-width: 600px;
    margin: 0 auto 20px auto;
    text-align: center;
}
.review-text {
    font-style: italic;
    margin-bottom: 10px;
}
.review-author {
    font-weight: 600;
}
/* БЛОК "КОНТАКТЫ" (форма) */
.contact-form {
    padding: 60px 0;
}
.contact-form h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
}
.contact-form form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}
.contact-form form label {
    margin-bottom: 5px;
    font-weight: 600;
}
.contact-form form input,
.contact-form form textarea {
    margin-bottom: 15px;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.btn-submit {
    background: var(--color-accent);
    color: var(--color-white);
    padding: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}
.btn-submit:hover {
    opacity: 0.9;
}
/* ПОДВАЛ */
footer {
    background: var(--color-darkblue);
    color: var(--color-white);
    padding: 30px 0;
}
.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}
.footer-logo a {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-white);
    text-decoration: none;
}
.footer-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0;
}
.footer-nav a {
    color: var(--color-white);
    text-decoration: none;
}
.footer-nav a:hover {
    text-decoration: underline;
}
.footer-contacts p {
    margin-bottom: 5px;
}
.footer-banks {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-banks img {
    width: 62%; 
    height: 65px;
}

/* Стили для формы заказа звонка */
.optional {
  font-size: 0.8em;
  color: #777;
  font-weight: normal;
}
input[type="tel"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: 'Open Sans', sans-serif;
}
input[type="tel"]:focus,
textarea:focus,
input[type="text"]:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* Обновленные стили для модального окна контактов */
.contact-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5); /* Уменьшенное затемнение фона */
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.contact-modal-content {
    position: relative;
    background-color: var(--color-white);
    margin: 5% auto;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.4s;
    max-height: 90vh; /* Гарантирует, что модальное окно не будет выше 90% высоты экрана */
    overflow: hidden; /* Предотвращает скроллинг внутри модального окна */
    display: flex;
    flex-direction: column;
}

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.contact-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.contact-modal-header h2 {
    margin: 0;
    color: var(--color-darkblue);
    font-size: 1.4rem;
}

.contact-modal-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

.contact-modal-close:hover {
    color: var(--color-accent);
}

.contact-modal-body {
    padding: 15px 20px;
    overflow-y: auto; /* Добавляем скролл только для содержимого, если оно не помещается */
    display: grid;
    grid-template-columns: 1fr 1fr; /* Разделим содержимое на две колонки */
    gap: 15px;
}

.contact-modal-body .contact-section {
    margin-bottom: 15px;
}

.contact-modal-body .messengers-links,
.contact-modal-body .social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
    height: auto;
}

.contact-section {
    margin-bottom: 15px; /* Уменьшаем отступ между секциями */
}

.contact-section h3 {
    font-size: 1rem;
    color: var(--color-darkblue);
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px; /* Уменьшаем отступ между элементами */
}

.contact-icon {
    margin-right: 10px;
    font-size: 1.1rem;
    color: var(--color-accent);
    width: 20px;
    text-align: center;
}

/* Компактные социальные иконки */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
}

.messengers-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    width: 60px; /* Уменьшаем ширину */
    transition: transform 0.3s;
}

.social-icon {
    width: 35px; /* Уменьшаем размер иконки */
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3px;
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

.social-link span {
    font-size: 0.75rem;
    text-align: center;
}

/* Этот стиль сделает колонку с социальными сетями на всю ширину 
.contact-section:nth-child(4), .contact-section:nth-child(5) {
    grid-column: 1 / -1;
}*/

/* Исправление цвета текста в модальном окне для мобильных устройств */
.contact-modal .contact-info,
.contact-modal .contact-info a,
.contact-modal .contact-section h3,
.contact-modal .social-link span {
    color: #333 !important; /* Темный цвет текста, который будет хорошо видно на белом фоне */
}

.contact-modal .contact-icon {
    color: var(--color-accent) !important; /* Акцентный цвет для иконок */
}

.contact-modal-header h2 {
    color: var(--color-darkblue) !important; /* Цвет заголовка */
}

/* Скрываем мобильные элементы */
.burger-menu,
.mobile-nav,
.mobile-menu-button,
.contact-link-mobile {
    display: none;
}

.emergency-btn {
    margin-top: 15px;
    text-align: center;
}
.emergency-btn .btn-primary {
    padding: 12px 20px;
    display: inline-block;
    font-size: 1rem;
}