/* Базовые стили */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --accent-color: #3498db;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Шапка */
.header {
    background-color: var(--primary-color);
    color: white;
    padding: 20px 0;
    box-shadow: var(--box-shadow);
}

.logo-block {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 60px;
    height: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
    font-weight: bold;
    font-size: 18px;
}

.header-center {
    text-align: center;
    margin: 20px 0;
}

.header h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.header-contacts {
    margin-top: 15px;
}

.phone-link {
    color: white;
    text-decoration: none;
    font-size: 20px;
    transition: var(--transition);
}

.phone-link:hover {
    color: var(--accent-color);
}

/* О компании */
.about-section {
    padding: 40px 0;
    background-color: white;
    margin: 20px 0;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.about-block {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-block h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 24px;
}

/* Карточки услуг */
.services-section {
    padding: 40px 0;
}

.services-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
    font-size: 28px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-card {
    perspective: 1000px;
    height: 300px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.service-card:hover .card-inner {
    transform: rotateY(180deg);
}

.service-card.active .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.card-front {
    background-color: white;
}

.card-image {
    height: 70%;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .card-image img {
    transform: scale(1.05);
}

.card-title {
    height: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
    background-color: white;
}

.card-back {
    background-color: var(--primary-color);
    color: white;
    transform: rotateY(180deg);
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.card-content {
    flex: 1;
}

.card-content h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: white;
}

.price {
    font-size: 18px;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.card-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-call, .btn-order {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-call {
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
}

.btn-order {
    background-color: var(--secondary-color);
    color: white;
}

.btn-call:hover, .btn-order:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Слайдер автопарка */
.fleet-section {
    padding: 40px 0;
    background-color: #f1f1f1;
}

.fleet-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
    font-size: 28px;
}

.fleet-slider {
    position: relative;
    overflow: hidden;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease;
}

.slider-slide {
    flex: 0 0 25%;
    padding: 0 7.5px;
    box-sizing: border-box;
}

.slide-inner {
    position: relative;
    width: 100%;
    height: 390px;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.slider-slide:hover .slide-inner {
    transform: rotateY(180deg);
}

.slider-slide.active .slide-inner {
    transform: rotateY(180deg);
}

.slide-front, .slide-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.slide-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-back {
    background-color: var(--primary-color);
    color: white;
    transform: rotateY(180deg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slide-back h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.slide-back p {
    margin-bottom: 5px;
    font-size: 14px;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
    z-index: 1;
}

.slider-arrow:hover {
    background-color: var(--accent-color);
}

.prev {
    left: 15px;
}

.next {
    right: 15px;
}

/* Форма заявки */
.order-section {
    padding: 40px 0;
    background-color: white;
}

.order-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
    font-size: 28px;
}

.order-form {
    max-width: 800px;
    margin: 0 auto;
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--dark-color);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* Капча */
.captcha-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

#captchaQuestion {
    font-weight: bold;
    color: var(--primary-color);
}

.refresh-captcha {
    background-color: var(--accent-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.refresh-captcha:hover {
    background-color: #2980b9;
    transform: rotate(180deg);
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox input {
    width: auto;
}

.checkbox label {
    margin-bottom: 0;
    font-weight: normal;
}

.submit-btn {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    display: block;
    width: 100%;
    max-width: 250px;
    margin: 20px auto 0;
}

.submit-btn:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
}

/* Футер */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 30px 0;
    margin-top: 40px;
}

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

.footer-phone a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: var(--transition);
}

.footer-phone a:hover {
    color: var(--accent-color);
}

.scroll-top {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
}

.scroll-top:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
}

/* Модальные окна */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 25px;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: var(--transition);
}

.close:hover {
    color: var(--secondary-color);
}

#errorMessage {
    color: var(--secondary-color);
    font-size: 18px;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
	}
    
    .slider-slide {
        flex: 0 0 33.33%;
	}
}

@media (max-width: 768px) {
    .header {
        padding: 15px 0;
	}
    
    .header-center h1 {
        font-size: 22px;
	}
    
    .phone-link {
        font-size: 16px;
	}
    
    .form-row {
        flex-direction: column;
        gap: 15px;
	}
    
    .slider-slide {
        flex: 0 0 50%;
	}
    
    .order-form {
        padding: 20px;
	}
}

@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr;
	}
    
    .slider-slide {
        flex: 0 0 100%;
	}
    
    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
	}
}

/* Анимации */
@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

/* Кнопка заказть */
.btn-order {
	background-color: #3498db !important;
}

/* Отступ сверху блок */
.margin-top {
	margin-top: 50px !important;
}

.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.captcha-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

#captchaQuestion {
    font-weight: bold;
    color: var(--primary-color);
}

.refresh-captcha {
    background-color: var(--accent-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.refresh-captcha:hover {
    background-color: #2980b9;
    transform: rotate(180deg);
}

/* Модальные окна */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 25px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
}

/* Капча */
.captcha-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

#captchaQuestion {
    font-weight: bold;
    color: #2c3e50;
}

.refresh-captcha {
    background: #3498db;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.refresh-captcha:hover {
    background: #2980b9;
}

.refresh-captcha i {
    transition: transform 0.3s;
}

.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    min-height: 20px;
}

.logo {
	width: 150px !important;
}

.center{
	text-align: center;
}

/* Таблицы парка авто */
.truck-table {
	width: 100%;
	max-width: 600px;
	margin: 20px auto;
	border-collapse: collapse;
}

.truck-table th, .truck-table td {
	border: 1px solid #ddd;
	padding: 2px;
	text-align: center;
	color: #fed452 !important;
	font-size: 12px !important;
}

.truck-table th {
	background-color: #f2f2f2;
	font-weight: bold;
	color: #2c3e50 !important;
}

.truck-table tr:nth-child(even) {
	background-color: #f9f9f9;
}

.notes {
	max-width: 600px;
	margin: 20px auto;
	padding: 15px;
	background-color: #f5f5f5;
	border-left: 4px solid #4CAF50;
}


/* Слайдер img  */

.slide-front img {
	object-fit: none !important;
	margin: 5px auto;
}


/* Слайдер описание */

.transport-description {
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	border-radius: 12px;
	padding: 25px;
	margin: 30px 0;
	box-shadow: 0 4px 12px rgba(0,0,0,0.08);
	border-left: 5px solid #ffd754;
}

.description-title {
	color: #2c3e50;
	font-size: 22px;
	margin-bottom: 20px;
	text-align: center;
	position: relative;
	padding-bottom: 10px;
}

.description-title:after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 80px;
	height: 3px;
	background: #3498db;
}

.transport-types {
	list-style: none;
	padding: 0;
	margin: 20px 0;
}

.transport-types li {
	padding: 10px 15px;
	margin-bottom: 8px;
	background-color: rgba(255,255,255,0.7);
	border-radius: 6px;
	display: flex;
	align-items: center;
	transition: all 0.3s ease;
}

.transport-types li:hover {
	background-color: white;
	transform: translateX(5px);
}

.transport-icon {
	margin-right: 12px;
	font-size: 20px;
}

.disclaimer {
	background-color: white;
	padding: 15px 20px;
	border-radius: 8px;
	margin-top: 25px;
	border-left: 3px solid #e74c3c;
}

.legal-notice {
	font-size: 13px;
	color: #7f8c8d;
	text-align: center;
	margin-top: 15px;
	font-style: italic;
}

@media (max-width: 768px) {
	.transport-description {
		padding: 15px;
	}
	
	.description-title {
		font-size: 19px;
	}
}

/* Стили для футера */
.price-disclaimer {
  background-color: #2c3e50;
  padding: 12px 15px;
  text-align: center;
  font-size: 13px;
  color: #fff;
  border-top: 1px solid #e0e0e0;
  margin: 40px auto !important;
}
  
  .price-disclaimer a {
    color: #e74c3c;
    text-decoration: none;
    cursor: pointer;
    font-weight: 600;
  }
  
  .price-disclaimer a:hover {
    text-decoration: underline;
  }
  
  /* Стили модального окна */
  .modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    font-family: 'Roboto', sans-serif;
  }
  
  .modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 25px 30px;
    border-radius: 5px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
  }
  
  .close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: normal;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
  }
  
  .close-modal:hover {
    color: #e74c3c;
  }
  
  .modal h3 {
    margin-top: 0;
    color: #333;
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
  }
  
  .modal p {
    color: #555;
    line-height: 1.5;
    margin-bottom: 15px;
  }
  
  .modal ul {
    padding-left: 20px;
    color: #555;
    margin-bottom: 20px;
  }
  
  .modal li {
    margin-bottom: 8px;
    line-height: 1.4;
  }
  
  .modal-contact {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
    text-align: center;
  }
  
  .modal-phone {
    display: inline-block;
    background-color: #e74c3c;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
    transition: background-color 0.3s;
  }
  
  .modal-phone:hover {
    background-color: #c0392b;
  }
  
  @media (max-width: 600px) {
    .modal-content {
      margin: 10% auto;
      padding: 20px 15px;
      width: 95%;
    }
  }