
:root {
    --primary-color:   #255da1;
    --secondary-color: #1d3557;
    --accent-color:    #a8dadc;
    --light-color:     #f1faee;
    --dark-color:      #457b9d;
    --text-color:      #333;
    --text-light:      #777;
}

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

html {
    scroll-behavior: smooth;
}

body {
    padding-top: 70px;
    color: var(--text-color);
    background-color: #fff;
    line-height: 1.6;
    font-family: Roboto, sans-serif;
}

a {
    text-decoration: none;
    color: #fff;
}


.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hidden {
    display: none;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 70px;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.logo a {
    font-size: 1.5rem;
    color: var(--secondary-color);
    text-decoration: none;
    letter-spacing: 1px;
    transition: 0.3s;
}

.logo a:hover {
    transform: scale(1.05);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.logo span {
    color: var(--primary-color);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 10px;
}

nav ul li a {
    text-decoration: none;
    color: var(--secondary-color);
    padding: 8px 12px;
    border-radius: 6px;
    transition: 0.3s;
}

nav ul li a:hover {
    background: var(--primary-color);
    color: #fff;
}


.burger-menu {
    display: none !important;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.burger-bar {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 3px;
    margin: 4px 0;
    transition: 0.3s;
}

.burger-menu.active .burger-bar:first-child {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger-menu.active .burger-bar:nth-child(2) {
    opacity: 0;
}

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







.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =============================================
   СЕКЦИЯ УСЛУГ
   ============================================= */
.services-section {
    padding: 60px 0;
}

.services-section h2 {
    margin-top: 50px;
    margin-bottom: 30px;
    text-align: center;
    font-size: 2rem;
    color: var(--secondary-color);
}

.service {
    display: flex;
    gap: 30px;
    margin-bottom: 60px;
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.service-info {
    flex: 1;
}

.service-info h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.service-info p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.service-features {
    padding-left: 20px;
}

.service-features li {
    margin: 8px 0;
    color: var(--text-color);
}

/* Галерея услуг */
.service-gallery {
    position: relative;
    flex: 1;
    min-width: 0;
}

.gallery-container {
    width: 100%;
    height: 280px;
    border-radius: 10px;
    overflow: hidden;
    background: #eee;
}

.gallery-slide {
    display: none;
    width: 100%;
    height: 100%;
}

.gallery-slide.active {
    display: block;
}

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

.gallery-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.gallery-prev,
.gallery-next {
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.gallery-prev:hover,
.gallery-next:hover {
    background: var(--secondary-color);
}

/* =============================================
   СЕКЦИЯ ПРЕИМУЩЕСТВ
   ============================================= */
.about-section {
    padding: 40px 0;
    background: #fff;
}

.about-section h2 {
    margin-bottom: 30px;
    font-size: 2rem;
    color: var(--secondary-color);
}

.about-content {
    display: grid;
    gap: 30px;
}

.about-text > p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.feature-card {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-card h3 {
    margin-bottom: 10px;
    color: var(--secondary-color);
}

/* =============================================
   ГРАФИК РАБОТЫ
   ============================================= */
.working-hours-section {
    margin: 40px 0;
}

.working-hours-section h2 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.working-hours-container {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    overflow-x: auto;
}

.day-card {
    flex: 0 0 200px;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.day-card.weekend {
    background: #fff0f0;
}

.day {
    display: block;
    font-weight: 500;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.hours {
    display: block;
    color: var(--primary-color);
    font-size: 1rem;
}

.hours.s {
    color: #1d3557;
    font-size: 0.7rem;
}

/* =============================================
   ЦЕНЫ
   ============================================= */
.pricing-section {
    padding: 50px 0;
    background: var(--light-color);
}

.pricing-section h2 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.price-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.price-card {
    position: relative;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

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

.price-card.popular {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
}

.price-card h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.price-card .price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 20px 0;
}

.features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
}

.features li {
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.features li i {
    color: var(--primary-color);
}

/* =============================================
   КОНТАКТЫ ВЛАДЕЛЬЦА
   ============================================= */
.owner-contacts {
    margin: 40px 0;
    padding: 30px 0;
    background: var(--light-color);
}

.owner-contacts h2 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 30px;
}

.contact-card {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    font-style: normal; /* для <address> */
}

.contact-column {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.main-contacts {
    flex: 2;
    min-width: 280px;
}

.social-contacts {
    flex: 1;
    min-width: 200px;
}

.separator {
    width: 1px;
    align-self: stretch;
    background: #ddd;
    margin: 0 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-item i {
    font-size: 1.8rem;
    color: var(--primary-color);
    min-width: 40px;
    text-align: center;
}

.contact-info p {
    color: var(--secondary-color);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.contact-info a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: var(--primary-color);
}

/* =============================================
   КАРТА
   ============================================= */
.map-section {
    margin-top: 50px;
    position: relative;
}

.map-section h2 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.styled-map {
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.styled-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.address-card {
    position: absolute;
    top: 70px;
    z-index: 100;
    background-attachment: fixed;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    font-style: normal;
}


.address-card i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
    display: block;
}

/* =============================================
   КНОПКИ
   ============================================= */
.btn {
    background: var(--primary-color);
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background 0.3s;
}

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

/* =============================================
   ПОДВАЛ
   ============================================= */
footer {
    background: var(--secondary-color);
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.footer-contacts {
    font-style: normal;
}

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

.footer-contacts p {
    margin: 5px 0;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

/* =============================================
   КАТАЛОГ / ФИЛЬТРЫ
   ============================================= */
.filters-section {
    background: #fff;
    padding: 30px 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.filters-section h2 {
    margin-bottom: 20px;
    font-size: 2rem;
    color: var(--secondary-color);
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 180px;
}

.filter-group label {
    font-weight: 500;
    color: var(--secondary-color);
    font-size: 0.95rem;
}

.filter-group select,
.filter-group input[type="text"] {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    background: #fff;
}

.other-filter {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-top: 10px;
}

.other-brands-btn {
    background: var(--primary-color);
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.other-brands-btn:hover {
    background: var(--secondary-color);
}

.other-brands {
    width: 100%;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
    border: none;
    padding: 0;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
}

.checkbox-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    margin-top: 4px;
}

/* Результаты */
.tires-section {
    padding: 30px 0;
}

.tires-section h2 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

#tires-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.tire {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 700px;
    padding: 20px 25px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #eee;
    transition: box-shadow 0.3s;
}

.tire:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tire .price {
    color: var(--primary-color);
    font-weight: 700;
}

.load-more-btn {
    margin: 30px auto;
    padding: 15px 50px;
    background: var(--primary-color);
    color: #fff;
    font-weight: 500;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
}

.load-more-btn:hover {
    transform: scale(1.05);
    background: var(--secondary-color);
}

.load-more-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* =============================================
   АДАПТИВНОСТЬ
   ============================================= */
@media (min-width: 768px) {
    .services-section h2 {
        margin-top: 30px;
        margin-bottom: 10px;
        
    }
    .working-hours-container {
        flex-wrap: wrap;
        overflow-x: visible;
        justify-content: center;
    }

    .day-card {
        flex: 1;
        min-width: 150px;
    }
}

@media (max-width: 992px) {
    .services-section h2 {
        margin-top: 30px;
        margin-bottom: 10px;
        
    }
    .nav-links {
        gap: 20px;
    }
    p{
        font-size: 1.3rem !important
    };
}

@media (max-width: 768px) {

    .services-section h2 {
        margin-top: 30px;
        margin-bottom: 10px;
        
    }
    .header-section{
        border-radius: 20px;
        background-color: rgb(70, 104, 157);
        width: 95%;
        height: 25vh;
        display: flex;
        justify-content: space-around;
        align-items:center;
        flex-direction: column;
        margin-top: 7%;
    }
    .header-title{
        width: 60%;
        height: 10%;
        text-align: center;
    }
    .more-link{
        padding: 0px;
        text-align: center;
        height: 20%;
        font-size: 22px;
        border: 1px solid #fff;
        border-radius: 15px;
        color: #fff;
        width: 20%;
    
    }
    .more-link:hover{
        transition: 0.5s;
        background-color: #fff;
        color: #255da1;
    }
    .header-title h1{
        color: #fff;
        font-size:26px;
    }
    .header-title p{
        color: #fff;
        font-size: 24px;
    }

    .burger-menu {
        display: block !important;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        right: -100%;
        width: 100%;
        max-width: 300px;
        height: calc(100vh - 60px);
        background: #fff;
        padding: 20px;
        transition: right 0.3s;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        flex-direction: column;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 10px 0;
        width: 100%;
    }

    .nav-links li a {
        display: block;
        width: 100%;
        padding: 15px;
        border-radius: 8px;
        background: #f8f9fa;
        text-align: center;
        color: var(--secondary-color);
        transition: 0.3s;
    }

    .nav-links li a:hover {
        background: var(--primary-color);
        color: #fff;
    }

    .service {
        flex-direction: column;
    }

    .service-gallery {
        order: -1;
    }

    .gallery-container {
        height: 200px;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-contacts {
        margin-top: 20px;
    }

    

    .about-content,
    .features-grid {
        grid-template-columns: 1fr !important;
    }

    .working-hours-container {
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        flex-wrap: wrap;
        justify-content: center;
    }

    .working-hours-container::-webkit-scrollbar {
        height: 6px;
    }

    .working-hours-container::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 4px;
    }

    .day-card {
        flex: 1 1 45%;
        margin: 5px;
    }

    .contact-card {
        flex-direction: column;
        padding: 25px;
        text-align: center;
    }

    .separator {
        width: 100%;
        height: 1px;
        margin: 20px 0;
    }

    .main-contacts,
    .social-contacts {
        min-width: 100%;
    }

    .address-card {
        position: static;
        margin-bottom: 20px;
    }

    .styled-map {
        height: 300px;
    }

    .filters {
        flex-direction: column;
    }
    .more-link{
        font-size: 1rem !important;
    }
    .header-title p{
        font-size: 1rem !important;
    }
    h1{
        font-size: 1.7rem !important;
    }
    h2 {
        font-size: 1.5rem !important;
    }

    h3 {
        font-size: 1.2rem !important;
    }
}



































































header{
    width: 100%;
    height: 20vh;
    display: flex;
    justify-content: center;
    align-items: center;
}
.header-section{
    margin-top: 7%;
    border-radius: 20px;
    background-color: rgb(70, 104, 157);
    width: 95%;
    height: 25vh;
    display: flex;
    justify-content: space-around;
    align-items:center;
    flex-direction: column;
}
.header-title{
    text-align: center;
    width: 60%;
    height: 20%;
    
}
.more-link{
    padding: 5px 25px 5px 25px;
    text-align: center;
    width: 20%;
    height: 20%;
    font-size: 26px;
    border: 1px solid #fff;
    border-radius: 15px;
    color: #fff;
    
}
.more-link:hover{
    transition: 0.5s;
    background-color: #fff;
    color: #255da1;
}
.header-title h1{
    color: #fff;
    font-size: 36px;
}
.header-title p{
    color: #fff;
    font-size: 24px;
}