@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background-color: #1a1a1a; 
    color: #f0f0f0; 
}


.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}


header {
    background: #1a1a1a;
    padding: 15px 0;
    border-bottom: 1px solid #333; 
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
    margin-bottom: 15px;
}

.header-top .logo {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.header-top .logo img {
    margin-right: 10px;
}

.header-top .logo span {
    color: #FFC107; 
}

.contact-info .phone {
    font-size: 18px;
    font-weight: 500;
    margin-right: 20px;
    color: #fff;
}

.header-top .btn {
    background-color: transparent;
    border: 1px solid #FFC107;
    color: #FFC107;
    padding: 8px 15px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.header-top .btn:hover {
    background-color: #FFC107;
    color: #1a1a1a;
}

.header-bottom nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-start; 
}

.header-bottom nav li {
    margin-right: 30px;
}

.header-bottom nav a {
    color: #f0f0f0;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    transition: color 0.3s ease;
}

.header-bottom nav a:hover,
.header-bottom nav a.active {
    color: #FFC107;
}


.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.primary-btn {
    background-color: #FFC107;
    color: #1a1a1a;
}

.primary-btn:hover {
    background-color: #e0a800;
}

.secondary-btn {
    background-color: transparent;
    border: 1px solid #f0f0f0;
    color: #f0f0f0;
}

.secondary-btn:hover {
    background-color: #f0f0f0;
    color: #1a1a1a;
}

.large-btn {
    padding: 15px 40px;
    font-size: 18px;
}


.hero-new {
    background: url('https://via.placeholder.com/1600x600/333/fff?text=Car+Service+Background') center center/cover no-repeat; /* Замените на реальное изображение */
    position: relative;
    padding: 100px 0;
    color: #fff;
    text-align: left;
    height: 600px; 
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.hero-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.8), rgba(0,0,0,0.4)); 
}

.hero-text-container {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 600px; 
    margin-left: 5%;
}

.hero-new h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-new p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #ccc;
}

.hero-new .accent-text {
    color: #FFC107;
    font-weight: 500;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background-color: rgba(0,0,0,0.6);
    border-radius: 5px;
}

.hero-cta p {
    margin: 0;
    font-size: 16px;
    color: #FFC107; 
    font-weight: 500;
}


main {
    padding: 50px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 50px;
    text-transform: uppercase;
}


.about-us {
    background-color: #222; 
    padding: 60px 0;
}

.about-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.about-card {
    background-color: #1a1a1a;
    padding: 30px;
    text-align: center;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    flex-basis: 30%;
    min-width: 250px;
}

.about-card .about-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.about-card h3 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 500;
}

.about-card .accent-text {
    color: #FFC107;
}

.about-card p {
    color: #ccc;
    font-size: 15px;
}

.about-text {
    flex-basis: 40%;
    color: #f0f0f0;
    font-size: 16px;
}

.about-text p {
    margin-bottom: 15px;
}

.about-image {
    flex-basis: 30%;
    text-align: right;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}


.for-company {
    background: url('https://via.placeholder.com/1600x400/333/fff?text=Corporate+Service+Background') center center/cover no-repeat; 
    position: relative;
    padding: 80px 0;
    color: #fff;
    text-align: center;
}

.for-company::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7); 
}

.for-company-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.for-company h2 {
    font-size: 38px;
    margin-bottom: 20px;
}

.for-company p {
    font-size: 18px;
    margin-bottom: 30px;
}

.our-advantages {
    background-color: #1a1a1a;
    padding: 60px 0;
    text-align: center;
}

.advantages-intro {
    font-size: 18px;
    color: #ccc;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto 50px auto;
}

.advantage-item {
    background-color: #222;
    padding: 30px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.advantage-item i {
    font-size: 48px;
    color: #FFC107;
    margin-bottom: 20px;
}

.advantage-item h3 {
    font-size: 20px;
    color: #fff;
    margin-bottom: 10px;
    font-weight: 500;
}

.advantage-item p {
    color: #ccc;
    font-size: 15px;
}

.center-btn {
    text-align: center;
}


footer {
    background-color: #111; 
    color: #bbb;
    padding: 30px 0;
    text-align: center;
    font-size: 14px;
    border-top: 1px solid #333;
}

footer a {
    color: #FFC107;
    text-decoration: none;
    font-weight: 500;
}

footer a:hover {
    text-decoration: underline;
}

.modal {
    position: fixed;
    inset: 0; 
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.6);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 1000;
    padding: 20px;
}

.modal:target {
    visibility: visible;
    opacity: 1;
}

.modal-dialog {
    background: #111;
    color: #fff;
    width: 100%;
    max-width: 520px;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    position: relative;
}

.modal-close {
    position: absolute;
    right: 14px;
    top: 10px;
    font-size: 28px;
    color: #ccc;
    text-decoration: none;
}

.modal h2 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 22px;
}

.modal p {
    margin-top: 0;
    margin-bottom: 16px;
    color: #ccc;
}

.modal-form label {
    display: block;
    font-size: 14px;
    margin-bottom: 6px;
    color: #ddd;
}

.modal-form input,
.modal-form textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 4px;
    border: 1px solid #333;
    background: #0f0f0f;
    color: #fff;
    margin-bottom: 12px;
}

.modal-form textarea {
    resize: vertical;
}

.modal-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
    margin-top: 8px;
}

.modal .secondary-btn {
    background: transparent;
    border: 1px solid #666;
    color: #ccc;
    padding: 10px 16px;
}

@media (max-width: 520px) {
    .modal-dialog {
        padding: 18px;
        border-radius: 6px;
    }
}