/* Reorder styles from service.css */
section.deliveryScene {
    height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
}

.deliveryScene h2 {
    text-align: center;
    opacity: 0;
    position: absolute;
    top: 2rem;
    width: 100%;
    z-index: 10;
    margin: 0;
}

/* SVG Container - верхняя половина */
.svg-container {
    position: absolute;
    top: 4rem;
    left: 0;
    width: 100%;
    height: calc(50vh - 2rem); /* Вычитаем отступ заголовка */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.scene-svg {
    position: absolute;
    width: 128px;
    height: 128px;
    opacity: 1;
}

.scene-svg.initial-question {
    left: 25%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.scene-svg.initial-object {
    right: 25%;
    top: 50%;
    transform: translate(50%, -50%);
}

/* Скрытые SVG для будущих анимаций */
.scene-svg.calling-person,
.scene-svg.broken-object,
.scene-svg.airat,
.scene-svg.clock,
.scene-svg.ok-person,
.scene-svg.fixed-object {
    opacity: 0;
    pointer-events: none;
}

.scrollDownIcon {
    animation: translateY 1s ease-in-out infinite alternate;
}

@keyframes translateY {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(14px);
    }

}

.scene-svg.truck {
    opacity: 0;
    pointer-events: none;
    right: -200px;
    top: 100px;
    transform: translate(50%, -50%) scale(0.8);
    width: 185px;
    height: 185px;
}

.scene-svg.truck svg {
    width: 185px;
    height: 185px;
}

svg.scene-svg.airat {
    width: 92px;
    height: 92px;
    right: 15vw;
    bottom: 25%;
}

/* Дымок из грузовика */
.truck {
    position: relative;
}

#smoke {
	position: absolute;
    z-index: 80;
    width: 100px;
    height: 1px;
    left: -14px;
    bottom: 37px;
    transform: rotate(20deg);
}

#smoke span { 
    display: block;
	position: absolute;
	bottom: -35px; left: 50%; margin-left:-20px;
	height: 0px; width: 0px;
	border: 35px solid #858383;
	border-radius: 35px;
	left: -14px; opacity: 0;
	transform: scale(0.2);
}

@keyframes smokeL {
	0%   { transform: scale(0.2) translate(0, 0) }
	10%  { opacity: 1; transform: scale(0.2) translate(-5px, 0px) }
	100% { opacity: 0; transform: scale(1) translate(-130px, -10px) }
}

@keyframes smokeR {
	0%   { transform: scale(0.2) translate(0, 0) }
	10%  { opacity: 1; transform: scale(0.2) translate(-5px, 0px) }
	100% { opacity: 0; transform: scale(1) translate(-130px, 20px) }
}

#smoke .smoke0 { animation: smokeL 10s 0s infinite }
#smoke .smoke1 { animation: smokeR 10s 1s infinite }
#smoke .smoke2 { animation: smokeL 10s 2s infinite }
#smoke .smoke3 { animation: smokeR 10s 3s infinite }
#smoke .smoke4 { animation: smokeL 10s 4s infinite }
#smoke .smoke5 { animation: smokeR 10s 5s infinite }
#smoke .smoke6 { animation: smokeL 10s 6s infinite }
#smoke .smoke7 { animation: smokeR 10s 7s infinite }
#smoke .smoke8 { animation: smokeL 10s 8s infinite }
#smoke .smoke9 { animation: smokeR 10s 9s infinite }
/* EOF #smoke */

.scene-svg.handShake {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 192px;
    height: 192px;
    z-index: 5;
    pointer-events: none;
    opacity: 0;
}

.scene-svg.handShake path {
    fill: transparent;
    stroke: var(--red);
    stroke-width: 45px;
    stroke-linecap: round;
    stroke-dasharray: 46647.0859375;
    stroke-dashoffset: 46647.0859375;
}

/* Анимация отрисовки */
.scene-svg.handShake.visible path {
    animation: svgDraw linear 3.5s forwards .5s;
}

@keyframes svgDraw {
    to {
        stroke-dashoffset: 0;
    }
}
/* EOF SVG container */

/* Text Container - нижняя половина */
.text-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-sizing: border-box;
}

.scene-text {
    position: absolute;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-in-out;
    width: calc(100vw - 4rem);
    max-width: 600px;
}

.scene-text.active {
    opacity: 1;
    transform: translateY(0);
}

.scene-text p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--white);
    margin: 0;
}

.scene-text[data-step="6"] {
    top: 0;
}

.scene-text p > span {
    font-style: italic;
    color: var(--red);
}

.scene-text .sceneForWordsSpan {
    display: inline-block;
    font-style: inherit;
    color: inherit;
}

.word {
    display: inline-block;
    margin-right: 0.25em;
    line-height: 1.7;
}
/* EOF Text Container */

.delivery .text {
    text-align: center;
    opacity: 0;
    margin-bottom: 1rem;
}

.delivery .sectionContentBtn.order:not(.visibleBtn) {
    opacity: 0;
    transform: translateY(30px);
}

.delivery .sectionContentBtn.order.visibleBtn {
    animation: deliveryVisibleBtn 1s forwards;
}

@keyframes deliveryVisibleBtn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delivery .order {
    width: 8.8rem;
}

.delivery .order a {
    width: 7rem;
}

.delivery .order a span {
    width: 10.8rem;
}

div#modalOrder {
    background: var(--red);
}
/* EOF Reorder styles from service.css */

.bottomTrigger {
    height: 1px;
    width: 100%;
    margin-bottom: 0;
    padding-bottom: 0;
}