/* ========== Подключение шрифта Muller ========== */


/* ========== Стили для хлебных крошек ========== */
.pokraska-breadcrumb {
  margin: 0;
  margin-left: 5px;
  font-family: 'Muller', sans-serif;
  font-size: 14px;
  font-weight: 400;
  font-style: normal;
  line-height: 100%;
  letter-spacing: 0%;
  color: #bdbdbd;
  padding: 20px 0;
}

.pokraska-breadcrumb span {
  margin-right: 8px;
}

.pokraska-breadcrumb span:last-child {
  color: white;
  font-weight: 500;
}

.pokraska-breadcrumb a {
  color: #bdbdbd;
  text-decoration: none;
  transition: color 0.3s ease;
}

.pokraska-breadcrumb a:hover {
  color: #8DD563;
  text-decoration: underline;
}

.pokraska-breadcrumb span:not(:last-child) {
  margin-right: 8px;
}



/* ========== Стили для секции До/После ========== */
.before-after {
  background: #0E0E0E;
  padding: 20px 0 40px 0;
  color: white;
}

.before-after .section-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 46px;
  line-height: 120%;
  letter-spacing: 0%;
  text-transform: uppercase;
  text-align: left;
  margin: 0 0 20px 0;
}

.section-title-poduslugi {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 46px;
  line-height: 120%;
  letter-spacing: 0%;
  text-transform: uppercase;
  text-align: left;
  margin: 0 0 20px 0;
  color: white;
}
.section-title-poduslugi2 {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 46px;
  line-height: 120%;
  letter-spacing: 0%;
  text-transform: uppercase;
  text-align: left;
  margin: 0 0 40px 0;
  color: white;
}

.before-after-description {
  font-family: 'Muller', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 130%;
  letter-spacing: 0%;
  color: #ffffff;
  text-align: left;
  max-width: 800px;
  margin: 0 0 60px 0;
  padding: 0;
}

.comparison-gallery {
  display: grid;
  grid-template-columns: repeat(3, 440px);
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  justify-content: center;
}

.comparison-item {
  display: flex;
  justify-content: center;
}

.comparison-container {
  position: relative;
  width: 440px;
  height: 320px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.comparison-image {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: grab;
  user-select: none;
}

.comparison-image:active {
  cursor: grabbing;
}

.before-img,
.after-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.after-img {
  clip-path: inset(0 0 0 50%);
}

.comparison-slider {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  transform: translateX(-50%);
  z-index: 10;
}

.slider-line {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: white;
  transform: translateX(-50%);
}

.slider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.slider-handle:hover {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.slider-handle:active {
  cursor: grabbing;
  transform: translate(-50%, -50%) scale(0.95);
}

.slider-handle svg {
  width: 10px;
  height: 8px;
}

.slider-handle svg:first-child {
  margin-right: -1px;
}

.slider-handle svg:last-child {
  margin-left: -1px;
}

.comparison-labels {
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 5;
}

.label-before,
.label-after {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-family: 'Muller', sans-serif;
  font-size: 14px;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

/* ========== Стили для секции "Этапы покраски автомобиля" ========== */
.painting-stages {
  
  padding: 80px 0 120px 0;
  color: white;
  position: relative;
  overflow: hidden;
}

.painting-stages::before {
  content: "";
  position: absolute;
  top: -80px;
  left: -100px;
  right: 0;
  bottom: 0;
  height: 60%;
  background: url('poduslugiback.png') center/100% 100% no-repeat;
  z-index: -1;
  transform: scale(1.05);
}

.stages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
  margin-bottom: 60px;
}

.stage-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  width: 440px;
  height: 290px;
  padding: 24px;
  backdrop-filter: blur(12px);
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.stage-number {
  font-family: 'Muller', sans-serif;
  font-weight: 500;
  font-size: 18px;
  color: #8DD563;
  margin-bottom: 20px;
}

.stage-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.2;
  text-transform: uppercase;
  color: white;
  margin: 0;
  letter-spacing: 0;
}

.stage-description {
  font-family: 'Muller', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.3;
  color: white;
  margin: 0;
  margin-top: auto;
}

.pricing-title {
  margin-top: 120px;
  margin-bottom: 40px;
  text-align: center;
}

.pricing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 20px;
  padding: 0;
  font-family: 'Muller', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 140%;
  letter-spacing: 0%;
  color: rgba(255, 255, 255, 0.7);
  height: 50px;
  border-bottom: 1px solid #D9D9D9;
  position: relative;
}

.pricing-header::after {
  content: "";
  position: absolute;
  top: 0;
  left: 80%;
  width: 1px;
  height: 100%;
  background: #D9D9D9;
  transform: translateX(-50%);
}

.service-label {
  flex: 1;
  text-align: left;
  padding-left: 20px;
}

.price-label {
  flex: 0 0 20%;
  text-align: left;
  padding-left: 20px;
}

.pricing-table {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.pricing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid #D9D9D9;
  color: white;
  height: 50px;
  position: relative;
}

.pricing-row::after {
  content: "";
  position: absolute;
  top: 0;
  left: 80%;
  width: 1px;
  height: 100%;
  background: #D9D9D9;
  transform: translateX(-50%);
}

.pricing-row:last-child {
  border-bottom: 1px solid #D9D9D9;
}

.service-name {
  flex: 1;
  text-align: left;
  font-family: 'Muller', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 140%;
  letter-spacing: 0%;
  padding-right: 20px;
}

.service-price {
  flex: 0 0 19%;
  text-align: left;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 140%;
  letter-spacing: 0%;
  padding-left: 20px;
}


/* Адаптация для больших экранов (1440px и выше) */
@media (min-width: 1440px) {
  .comparison-container-carousel {
    position: relative;
    overflow: visible;
    padding: 0;
    margin-top: 0;
    display: block;
  }
  
  .comparison-nav {
    display: none;
  }
  
  .comparison-dots {
    display: none;
  }
  
  .comparison-track {
    display: grid;
    grid-template-columns: repeat(3, 440px);
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    justify-content: center;
    position: static;
    transform: none;
  }
  
  .comparison-track .comparison-item {
    flex: none;
    max-width: 440px;
    order: unset;
  }
}

/* Адаптация для планшетов (960px - 1439px) */
@media (min-width: 960px) and (max-width: 1439px) {
  .comparison-gallery {
    display: none;
  }
  
  .comparison-container-carousel {
    display: block;
  }
  
  .comparison-dots {
    display: flex;
  }
  
  .stages-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
  }
  
  .stage-card {
    width: 100%;
    max-width: 440px;
    height: 250px;
  }
  
  /* Карусель сравнений для планшетов */
  .comparison-container-carousel {
    position: relative;
    overflow: hidden;
    padding: 0 60px;
    margin-top: 40px;
    display: flex;
    justify-content: center;
  }
  
  .comparison-track {
    display: flex;
    gap: 20px;
    position: relative;
    justify-content: center;
    align-items: center;
    transition: all 0.4s ease;
  }
  
  .comparison-track .comparison-item {
    flex: 0 0 440px;
    max-width: 440px;
    transition: all .4s ease;
    order: var(--order, 0);
  }
  
  .comparison-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
    z-index: 10;
    outline: none;
  }
  
  .comparison-nav:hover {
    background: rgba(255, 255, 255, .2);
    border-color: rgba(255, 255, 255, .4);
  }
  
  .comparison-nav.prev {
    left: 20px;
  }
  
  .comparison-nav.next {
    right: 20px;
  }
  
  .comparison-nav svg {
    width: 20px;
    height: 20px;
  }
  
  .comparison-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
  }
  
  .comparison-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .3);
    border: none;
    cursor: pointer;
    transition: all .3s ease;
    padding: 0;
    outline: none;
  }
  
  .comparison-dot.active {
    width: 24px;
    height: 8px;
    border-radius: 4px;
    background: #8DD563;
  }
  
  .comparison-dot:hover {
    background: rgba(255, 255, 255, .5);
  }
  
  .comparison-dot.active:hover {
    background: #8DD563;
  }
}
/* Адаптивность для планшетов среднего размера */
@media (min-width: 768px) and (max-width: 959px) {
  /* Блок "До/После" - карусель с 2 видимыми блоками */
  .comparison-container-carousel {
    position: relative;
    overflow: hidden;
    padding: 0;
    margin-top: 0;
  }
  .comparison-container{
    height: 250px;
  }
  .comparison-track {
    display: flex;
    transition: transform 0.4s ease;
    gap: 30px;
    padding: 0 20px;
    justify-content: center;
    align-items: center;
  }
  
  .comparison-track .comparison-item {
    flex: 0 0 350px;
    max-width: 350px;
    width: 360px;
    height: 250px;
    transition: all .4s ease;
    order: var(--order, 0);
  }
  
  .comparison-item h3 {
    font-size: 38px;
    line-height: 1.2;
  }
  
  .comparison-item p {
    font-size: 14px;
    line-height: 1.4;
  }
  
  /* Кнопки навигации карусели */
  .comparison-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
    z-index: 10;
    outline: none;
  }
  
  .comparison-nav:hover {
    background: rgba(255, 255, 255, .2);
    border-color: rgba(255, 255, 255, .4);
  }
  
  .comparison-nav.prev {
    left: 20px;
  }
  
  .comparison-nav.next {
    right: 20px;
  }
  
  .comparison-nav svg {
    width: 20px;
    height: 20px;
  }
  
  /* Точки навигации */
  .comparison-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
  }
  
  .comparison-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .3);
    border: none;
    cursor: pointer;
    transition: all .3s ease;
    padding: 0;
    outline: none;
  }
  
  .comparison-dot.active {
    width: 24px;
    height: 8px;
    border-radius: 4px;
    background: #8DD563;
  }
  
  .comparison-dot:hover {
    background: rgba(255, 255, 255, .5);
  }
  
  .comparison-dot.active:hover {
    background: #8DD563;
  }
  
  /* Секция "Этапы покраски" - сетка 2 столбца, 3 строки */
  .painting-stages h2 {
    font-size: 38px;
    line-height: 1.2;
  }
  .painting-stages{
    padding-bottom: 24px;
  }
  .stages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 730px;
    margin: 0 auto;
    padding: 0;
  }
  
  .stage-card {
    width: 100%;
    max-width: 350px;
    height: 250px;
    padding: 18px;
  }
  
  .stage-number {
    font-size: 14px;
    line-height: 1.2;
    margin-bottom: 15px;
  }
  
  .stage-card h3 {
    font-size: 22px;
    line-height: 1.3;
  }
  
  .stage-card p {
    font-size: 14px;
    line-height: 1.4;
  }
  
  /* Таблица стоимости */
  .pricing-table th {
    font-size: 20px;
    line-height: 1.2;
  }
  .pricing-row{
    padding: 0 10px;
  }
  .pricing-table td {
    font-size: 14px;
    line-height: 1.4;
  }
  .service-price{
    padding-left: 15px;
  }
}

/* Адаптация для мобильных устройств */
@media (max-width: 767px) {
  .pokraska-breadcrumb {
    font-size: 12px;
    margin-left: 0;
    padding: 15px 0;
  }
  
  .pokraska-breadcrumb span {
    margin-right: 6px;
  }
  
  /* Блок "До/После" для мобильных */
  .before-after .section-title {
    font-size: 38px;
  }
  
  .before-after-description {
    font-size: 14px;
  }
  
  .comparison-gallery {
    display: none;
  }
  
  .comparison-container-carousel {
    display: block;
    position: relative;
    overflow: hidden;
    padding: 0 20px;
    margin-top: 40px;
  }
  
  .comparison-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease;
    justify-content: center;
    align-items: center;
  }
  
  .comparison-track .comparison-item {
    flex: 0 0 330px;
    max-width: 330px;
    width: 330px;
    height: 230px;
    transition: all .4s ease;
  }
  
  .comparison-container {
    width: 330px;
    height: 230px;
  }
  
  /* Кнопки навигации карусели для мобильных */
  .comparison-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
    z-index: 10;
    outline: none;
  }
  
  .comparison-nav:hover {
    background: rgba(255, 255, 255, .2);
    border-color: rgba(255, 255, 255, .4);
  }
  
  .comparison-nav.prev {
    left: 10px;
  }
  
  .comparison-nav.next {
    right: 10px;
  }
  
  .comparison-nav svg {
    width: 16px;
    height: 16px;
  }
  
  /* Точки навигации для мобильных */
  .comparison-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
  }
  
  .comparison-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .3);
    border: none;
    cursor: pointer;
    transition: all .3s ease;
    padding: 0;
    outline: none;
  }
  
  .comparison-dot.active {
    width: 20px;
    height: 6px;
    border-radius: 3px;
    background: #8DD563;
  }
  
  .comparison-dot:hover {
    background: rgba(255, 255, 255, .5);
  }
  
  .comparison-dot.active:hover {
    background: #8DD563;
  }
  
  /* Блок "Этапы покраски" для мобильных */
  .painting-stages {
    padding-top: 20px;
    padding-bottom: 80px;
  }
  .container{
    padding: 0 10px;
  }
  .painting-stages::before {
    content:"";position:absolute;
    top: 40%;
    left: 50%;
    width: 1000px;  /* Высота родителя становится шириной */
    height: 100vw;
    background-size: 100% auto;
    margin: 0;
    transform: translate(-50%, -50%) rotate(270deg) scale(1.1);
    transform-origin: center center;
    z-index: -1;
  }
  
  .painting-stages h2 {
    font-size: 32px;
    margin-bottom: 40px;
  }
  
  .stages-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, 1fr);
    gap: 20px;
    max-width: 330px;
    margin: 0 auto;
    padding: 0 2px;
  }
  
  .stage-card {
    width: 100%;
    max-width: 330px;
    height: 230px;
    padding: 18px;
  }
  
  .stage-number {
    font-size: 14px;
    line-height: 1.2;
    margin-bottom: 15px;
  }
  
  .stage-card h3 {
    font-size: 22px;
    line-height: 1.3;
  }
  
  .stage-card p {
    font-size: 14px;
    line-height: 1.1;
  }
  
  /* Таблица стоимости для мобильных */
  .pricing-header {
    margin: 0 5px;
    padding: 0 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .pricing-table{
    padding: 0 5px;
  }
  .price-label{
    flex: 0 0 35%;
    text-align: left;
    padding-left: 5px;
  }
  
  .pricing-header::after {
    left: 65%;
    display: block;
  }
  
  .pricing-row {
    padding: 0 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .pricing-row::after {
    left: 65%;
    display: block;
  }
  
  .service-name {
    font-size: 14px;
    padding-right: 5px;
    flex: 1;
    text-align: left;
  }
  
  .service-price {
    font-size: 18px;
    padding-left: 5px;
    flex: 0 0 35%;
    text-align: left;
  }
}