/* Стили для хедера */
.header {
    background-color: #1f1f1f;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    padding: 0;
    position: relative;
    z-index: 100;
    width: 100%;
}

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-left: 60px;
    padding-right: 20px;
    gap: 24px;
}

.header__left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header__logo {
    height: 100%;
    max-height: 100%;
    width: auto;
    max-width: 140px;
    margin-right: 0;
    object-fit: contain;
    display: block;
}

.header__brand {
    display: none;
}

.header__nav {
    display: flex;
    gap: 30px;
}

.header__nav-link {
    font-size: 18px;
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.header__nav-link:hover {
    color: #FF0000;
}

.header__calculator-block {
    display: flex;
    align-items: center;
}

.service__price-button.calculator-button {
    width: 48px;
    height: 48px;
    background: #fff;
    color: #FF2D2D;
    border-radius: 8px;
    border: 2px solid #FF2D2D;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 2px;
    cursor: pointer;
    font-size: 0;
}

.service__price-button.calculator-button:hover {
    background: #FF2D2D;
    color: #fff;
    box-shadow: 0 4px 8px rgba(255, 0, 0, 0.15);
}

.service__price-button.calculator-button svg {
    width: 38px;
    height: 38px;
    display: block;
}

.header__phone {
    display: flex;
    align-items: center;
    border-left: 1px solid #666;
    padding-left: 16px;
    margin-left: 16px;
}

.header__right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Стили для основного контента */
.main {
    padding: 60px 0;
    background-color: #f9f9f9;
    width: 100%;
}

.main__container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding-left: 60px;
    padding-right: 20px;
    gap: 5%;
}

.main__content {
    flex: 0 1 45%;
    text-align: left;
    margin: 0;
}

.main__title {
    font-size: 48px;
    font-weight: 700;
    color: #222;
    margin-bottom: 20px;
    line-height: 1.2;
}

.main__text {
    font-size: 22px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.4;
}

.main__buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    justify-content: flex-start;
}

.main__button {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #FF0000;
    text-align: center;
    display: inline-block;
    background-color: white;
    color: #FF0000;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.main__button:hover {
    background-color: rgba(255, 0, 0, 0.05);
}

.main__button--primary {
    background-color: #FF0000;
    color: white;
    border: 2px solid #FF0000;
}

.main__button--primary:hover {
    background-color: #E60000;
}

.main__button--secondary {
    background-color: white;
    color: #FF0000;
}

.main__button--secondary:hover {
    background-color: rgba(255, 0, 0, 0.05);
}

.main__carousel-wrapper {
    flex: 0 1 50%;
    width: 100%;
    position: relative;
}

.main__carousel {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    height: 500px;
}

.main__track {
    display: flex;
    transition: transform 0.4s ease;
    height: 100%;
    gap: 20px;
}

.main__slide {
    flex: 0 0 calc(40% - 10px);
    min-width: calc(40% - 10px);
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    position: relative;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 400px;
    height: 500px;
}

.main__slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0.2), 
        rgba(0, 0, 0, 0.6) 50%,
        rgba(0, 0, 0, 0.8)
    );
    z-index: 1;
    pointer-events: none;
}

.main__slide-content {
    position: relative;
    z-index: 2;
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #FFFFFF;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.main__service-title {
    font-size: 30px;
    color: #fff;
    margin-bottom: 12px;
    margin-top: 0;
}

.main__service-description {
    font-size: 24px;
    color: #fff;
    margin-bottom: 0;
}

.main__service-price {
    display: inline-block;
    background-color: #f0f0f0;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #ff0000;
    position: absolute;
    top: 30px;
    right: 30px;
}

.main__controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.main__arrows {
    display: flex;
    gap: 10px;
}

.main__arrow {
    width: 40px;
    height: 40px;
    background-color: #FFFFFF;
    border: 2px solid #FF0000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    color: #FF0000;
}

.main__arrow:hover {
    background-color: #FF0000;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.main__arrow svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.main__counter {
    font-size: 16px;
    font-weight: 600;
    color: #FF0000;
    background-color: #FFFFFF;
    border: 2px solid #FF0000;
    border-radius: 20px;
    padding: 6px 15px;
    display: inline-block;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.main__current {
    color: #FF0000;
}

.main__navigation {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 15px;
}

.main__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: background-color 0.3s;
}

.main__dot.active {
    background-color: #ff0000;
}

@media (max-width: 1200px) {
    .main__slide {
        flex: 0 0 calc(45% - 10px);
        min-width: calc(45% - 10px);
    }
}

@media (max-width: 768px) {
    .main__carousel,
    .main__carousel-wrapper,
    .main__controls,
    .main__arrows,
    .main__counter,
    .main__track,
    .main__slide,
    .mobile-arrow {
        display: none !important;
    }
    .mobile-arrow {
        display: flex;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1001;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: #fff;
        border: 1.5px solid #E31E24;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(0,0,0,0.10);
        opacity: 0.95;
        cursor: pointer;
        transition: background 0.2s;
        padding: 0;
    }
    .mobile-arrow--prev {
        left: 8px;
    }
    .mobile-arrow--next {
        right: 8px;
    }
    .mobile-arrow svg {
        display: block;
        stroke: #E31E24;
        width: 28px;
        height: 28px;
    }
    .mobile-arrow svg path {
        stroke: #E31E24 !important;
        fill: none !important;
    }
    .main-carousel-title {
        font-size: 30px !important;
        line-height: 1.2;
    }
    .main-carousel-desc {
        font-size: 20px !important;
        line-height: 1.4;
    }
    .main-carousel__info {
        margin-left: 16px;
        margin-right: 16px;
    }
}

@media (max-width: 991px) {
    .header__container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        padding: 0 20px;
    }
    
    .header__left {
        margin-bottom: 0;
    }
    
    .header__logo {
        height: 100%;
    }
    
    .header__nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .main__container {
        flex-direction: column;
        gap: 30px;
    }
    
    .main__content {
        max-width: 100%;
        text-align: center;
    }
    
    .main__carousel-wrapper {
        max-width: 100%;
    }
    
    .main__title {
        font-size: 36px;
    }
    
    .main__text {
        font-size: 18px;
    }
    
    .main__buttons {
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .header {
    }
    
    .header__logo {
        height: 100%;
    }
    
    .header__nav {
        gap: 15px;
    }
    
    .header__nav-link {
        font-size: 16px;
    }
    
    .header__phone {
        font-size: 18px;
    }
    
    .main {
        padding: 40px 0;
    }
    
    .main__title {
        font-size: 32px;
    }
    
    .main__text {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .main__service-title {
        font-size: 20px;
    }
    
    .main__buttons {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .header__nav {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .main {
        padding: 30px 0;
    }
    
    .main__title {
        font-size: 28px;
    }
    
    .main__arrows {
        display: none;
    }
    
    .main__slide {
        padding: 20px;
    }
}

@media (max-width: 400px) {
    .main__slide {
        height: 38vh !important;
        max-height: 260px !important;
        min-height: 140px !important;
    }
    .main-carousel__wrapper {
        margin-top: 40px !important;
    }
}

/* Стили для кнопки "наверх" */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #FF0000;
    color: white;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateY(20px);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background-color: #E60000;
}

.scroll-to-top svg {
    transform: rotate(180deg);
}

@media (max-width: 767px) {
    .scroll-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .scroll-to-top {
        width: 35px;
        height: 35px;
        bottom: 15px;
        right: 15px;
    }
}

.mobile-arrow {
    display: none;
}

@media (max-width: 768px) {
    .mobile-arrow {
        display: flex;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1001;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: #fff;
        border: 1.5px solid #E31E24;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(0,0,0,0.10);
        opacity: 0.95;
        cursor: pointer;
        transition: background 0.2s;
        padding: 0;
    }
    .mobile-arrow--prev {
        left: 8px;
    }
    .mobile-arrow--next {
        right: 8px;
    }
    .mobile-arrow svg {
        display: block;
        stroke: #E31E24;
        width: 28px;
        height: 28px;
    }
    .mobile-arrow svg path {
        stroke: #E31E24 !important;
        fill: none !important;
    }
}

.main-carousel__info {
    margin-left: 60px;
}

@media (max-width: 768px) {
    .main-carousel__info {
        margin-left: 16px;
        margin-right: 16px;
    }
} 