/* Мобильные стили для страницы сервиса (max-width: 768px) */
@media (max-width: 768px) {
	/* Исправление для 100vh на мобильных WebKit (Safari на iPhone) */
	html {
		height: -webkit-fill-available;
	}
	
	.service-page {
		min-height: auto;
		min-height: -webkit-fill-available; /* Исправление для мобильных WebKit */
		overflow-x: hidden;
	}
	.service-page .section-hero {
		min-height: auto !important;
		max-height: none !important;
		height: auto !important;
		padding-bottom: 50px;
		padding-top: 0;
	}

	.service-page .section-hero__glow-img {
		display: none !important;
	}

	/* Скрываем пагинацию на мобильных */
	.service-page .section-hero__pagination {
		display: none;
	}

	.service-page .section-hero__wrapper {
		margin-top: 0;
		position: relative;
		min-height: auto;
		height: auto !important;
		max-height: none !important;
	}

	/* Контент hero секции */
	.service-page .section-hero__content {
		position: relative;
		transform: none;
		flex-direction: column;
		gap: 20px;
		opacity: 1 !important;
		visibility: visible !important;
		pointer-events: auto !important;
		max-width: 100%;
		margin-top: 0;
        width: 100%;
        height: 100vh;
		overflow: hidden;
        left: 0;
        top: 0;
	}

	/* Фоновое изображение для первого блока */
	.service-page .section-hero__glow::before {
		content: '';
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100vh; /* Fallback для старых браузеров */
		height: -webkit-fill-available;
		background-image: url('../img/services-home-mob.webp');
		background-size: cover;
		background-position: top center;
		background-repeat: no-repeat;
		z-index: -1;
		pointer-events: none;
	}

	.service-page .section-hero__text {
		width: 100%;
		margin-top: auto;
        margin-bottom: 20px;
		order: 2;
		text-align: left;
		align-items: flex-start;
		min-width: auto;
		display: flex;
		flex-direction: column;
		gap: 20px;
		position: relative;
		z-index: 1;
	}

	.service-page .section-hero__tag {
		font-size: 12px;
		line-height: 1.2em;
		padding: 10px 20px;
		border: 1px solid rgba(255, 255, 255, 0.3);
		border-radius: 50px;
		font-weight: 400;
		text-transform: uppercase;
		display: inline-block;
		color: #FFFFFF;
		text-align: center;
		width: fit-content;
	}

	.service-page .section-hero__title {
		font-size: 19px;
		line-height: 1.2em;
		text-align: left;
		font-weight: 400;
		text-transform: uppercase;
		margin-top: 0;
		margin-bottom: 0;
		color: #FFFFFF;
		width: 332px;
	}

	.service-page .section-hero__title span {
		font-weight: 700;
        font-size: 27px;
	}

	.service-page .section-hero__description {
		font-size: 14px;
		line-height: 1.2em;
		text-align: left;
		color: #FFFFFF;
		width: 321px;
		margin: 0;
	}

	.service-page .section-hero__description .section-hero__counter {
		font-weight: 700;
	}

	/* Кнопка "Связаться с нами" */
	.service-page .section-hero__contact-btn {
		display: block;
		width: fit-content;
		padding: 18px 20px;
		background: rgba(255, 255, 255, 0.1);
		border-radius: 50px;
		color: #FFFFFF;
		font-family: 'Geometria', sans-serif;
		font-size: 12px;
		line-height: 1.2em;
		font-weight: 400;
		text-align: center;
		text-decoration: none;
		cursor: pointer;
		margin-top: 20px;
		transition: all 0.3s ease;
	}

	.service-page .section-hero__contact-btn:hover {
		background: rgba(255, 255, 255, 0.2);
	}

	/* Блок с таймлайном (сертификат) */
	.service-page .section-hero__wrapper-card {
		position: relative !important;
		transform: none !important;
		opacity: 1 !important;
		visibility: visible !important;
		pointer-events: auto !important;
		margin-top: 0;
        margin-bottom: 80px;
		width: 100%;
		padding: 0 20px;
		display: block !important;
		top: auto !important;
		left: auto !important;
		height: auto !important;
		max-height: none !important;
		overflow: visible !important;
        z-index: 10;
	}
    .service-page .section-hero__wrapper-third::before {
        top: 700px;
        left: 0;
    }
    .service-page .section-hero__wrapper-third::after {
        display: none!important;
    }


	/* Показываем кнопки управления timeline на мобильных */
	.service-page .time-line__controls {
		display: flex !important;
	}

	.service-page .time-line__item-bg-oran,
	.service-page .time-line__item-bg {
		display: none !important;
	}

	.service-page .time-line__road-line {
        top: 130px!important;
        transform: none;
        right: 0;
        left: -20px;
        width: calc(100% + 40px);
	}

	/* Контейнер для точек на мобильной версии страницы сервиса - на всю ширину экрана */
	.service-page .time-line__dots-container {
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		width: 100vw;
		height: 10px;
		pointer-events: none;
		z-index: 2;
		overflow: visible;
	}

	.service-page .time-line__dot {
		position: absolute;
		width: 10px;
		height: 10px;
		background: #FF9F4F;
		border-radius: 50%;
		z-index: 15;
	}

	.service-page .time-line__wrapper {
		position: relative;
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 20px;
		padding: 0;
		width: 100%;
        margin-top: 23px!important;
	}
	.service-page .time-line__wrapper ul {
		min-height: 120px;
	}
	.service-page .time-line__img-wrapper {
		position: relative;
		width: 209px;
		height: 212px;
		margin-bottom: 20px;
	}

	.service-page .time-line__item-img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		border-radius: 50%;
		position: relative;
		z-index: 1;
	}


	.service-page .time-line__img-wrapper::before {
		width: 162px;
		height: 162px;

	}

	.service-page .time-line__item-date {
		top: -145px;
	}

	.service-page .time-line__item-title {
		font-family: 'Geometria', sans-serif;
		font-weight: 700;
		font-size: 20px;
		line-height: 1.2em;
		text-align: center;
		color: #FFFFFF;
		margin: 0;
		width: 333px;
	}

	.service-page .time-line__item-description {
		font-family: 'Geometria', sans-serif;
		font-weight: 400;
		font-size: 12px;
		line-height: 1.2em;
		text-align: center;
		color: #A0A0A0;
		margin: 0;
		width: 228px;
	}

	.service-page .time-line__controls {
		display: flex;
		gap: 20px;
		margin-top: 20px;
	}

	.service-page .time-line__control-btn {
		width: 50px;
		height: 50px;
		border-radius: 50%;
		background: rgba(255, 255, 255, 0.1);
		border: 1px solid rgba(255, 255, 255, 0.1);
		color: #FFFFFF;
		cursor: pointer;
		display: flex;
		align-items: center;
		justify-content: center;
		transition: all 0.3s ease;
	}

	.service-page .time-line__control-btn:hover {
		background: rgba(255, 255, 255, 0.2);
	}

	/* Контейнер для изменения порядка блоков */
	.service-page .section-hero .container {
		display: flex;
		flex-direction: column;
	}

	/* Блок с карточками услуг (третий блок) */
	.service-page .section-hero__wrapper-third {
		position: static !important;
		transform: none !important;
		opacity: 1 !important;
		visibility: visible !important;
		pointer-events: auto !important;
		margin-top: 60px;
		width: 100%;
		display: block !important;
		top: auto !important;
		left: auto !important;
		height: auto !important;
		max-height: none !important;
		overflow: visible !important;
		order: 2;
	}

	.service-page .section-hero__third-cards {
		display: flex;
		flex-direction: column;
		gap: 12px;
		margin-bottom: 40px;
        width: 100%;
	}
    .service-page .section-hero__third-cards strong {
        margin-left: 4px;
    }
	.service-page .section-hero__third-title {
		font-family: 'Geometria', sans-serif;
		font-weight: 400;
		font-size: 20px;
		line-height: 1.2em;
		text-align: center;
		color: #FFFFFF;
		margin: 0 0 8px 0;
		text-transform: uppercase;
	}
    .service-page .section-hero__third-title br {
        display: none;
    }

	.service-page .section-hero__third-card {
		width: 100%;
		max-width: 335px;
		margin: 0 auto;
		padding: 10px 20px;
		background: #260F01;
		border-radius: 20px;
		display: flex;
		flex-direction: column;
		gap: 12px;
	}

	.service-page .section-hero__third-card-content {
		display: flex;
		flex-direction: column;
		gap: 12px;
	}

	.service-page .section-hero__third-card-title {
		font-family: 'Geometria', sans-serif;
		font-weight: 700;
		font-size: 16px;
		line-height: 1.2em;
		text-transform: uppercase;
		color: #FFFFFF;
		margin: 0;
	}

	.service-page .section-hero__third-card-text {
		font-family: 'Geometria', sans-serif;
		font-weight: 400;
		font-size: 16px;
		line-height: 1.2em;
		color: #FFFFFF;
		margin: 0;
	}

	/* Форма обратной связи */
	.service-page .contact-page__form-section {
		width: 100%;
		max-width: 335px;
		margin: 0 auto;
        padding: 0;
	}

	.service-page .contact-page__form-section-wrapper {
		background: #000000;
		border: 1px solid rgba(255, 255, 255, 0.1);
		border-radius: 20px;
		padding: 30px 19px;
	}

	.service-page .contact-page__form-title {
		font-family: 'Geometria', sans-serif;
		font-weight: 500;
		font-size: 24px;
		line-height: 1.2em;
		text-align: center;
		color: #FFFFFF;
	}

	.service-page .contact-page__form {
		display: flex;
		flex-direction: column;
		gap: 8px;
	}

	.service-page .contact-page__form-group {
		width: 100%;
	}

	.service-page .contact-page__input {
		width: 100%;
		height: 50px;
		padding: 16px 22px;
		background: #0F0F0F;
		border: 1px solid rgba(255, 255, 255, 0.1);
		border-radius: 10px;
		color: #FFFFFF;
		font-family: 'Geometria', sans-serif;
		font-weight: 400;
		font-size: 14px;
		line-height: 1.2em;
		outline: none;
		box-sizing: border-box;
	}

	.service-page .contact-page__input::placeholder {
		color: #E3E3E3;
	}

	.service-page .contact-page__input:focus {
		border-color: rgba(255, 255, 255, 0.3);
	}

	.service-page .contact-page__textarea {
		height: 160px;
		resize: vertical;
		padding-top: 16px;
		min-height: 160px;
		font-family: 'Geometria', sans-serif;
	}

	.service-page .contact-page__privacy {
		display: flex;
		align-items: center;
		gap: 12px;
		margin-top: 8px;
		cursor: pointer;
	}

	.service-page .contact-page__privacy-checkbox {
		width: 20px;
		height: 20px;
		border: 1px solid #FFFFFF;
		border-radius: 4px;
		background: transparent;
		cursor: pointer;
		flex-shrink: 0;
	}

	.service-page .contact-page__privacy span {
		font-family: 'Geometria', sans-serif;
		font-weight: 400;
		font-size: 12px;
		line-height: 1.2em;
		color: #FFFFFF;
	}

	.service-page .contact-page__privacy a {
		color: #FFFFFF;
		text-decoration: underline;
	}

	.service-page .contact-page__submit {
		width: 100%;
		height: 50px;
		padding: 18px 22px;
		background: #262626;
		border: none;
		border-radius: 10px;
		color: #FFFFFF;
		font-family: 'Geometria', sans-serif;
		font-weight: 700;
		font-size: 16px;
		line-height: 1.2em;
		text-align: center;
		cursor: pointer;
		margin-top: 20px;
		transition: all 0.3s ease;
	}

	.service-page .contact-page__submit:hover:not(:disabled) {
		background: #333333;
	}

	.service-page .contact-page__submit:disabled {
		opacity: 0.5;
		cursor: not-allowed;
	}

	.service-page .contact-page__submit span {
		display: block;
	}

	/* Блок с карточками услуг (четвертый блок) */
	.service-page .section-hero__wrapper-fourth {
		position: static !important;
		transform: none !important;
		opacity: 1 !important;
		visibility: visible !important;
		pointer-events: auto !important;
		margin-top: 0;
		width: 100%;
		display: block !important;
		top: auto !important;
		left: auto !important;
		height: auto !important;
		max-height: none !important;
		overflow: visible !important;
		order: 1;
	}

	.service-page .section-hero__fourth-grid {
		display: flex;
		flex-direction: column;
		gap: 20px;
		margin-bottom: 40px;
	}

	.service-page .section-hero__fourth-card {
		width: 100%;
		max-width: 335px;
		height: 220px;
		margin: 0 auto;
		padding: 20px;
		background: linear-gradient(210deg, rgba(0, 168, 89, 1) 0%, rgba(4, 63, 35, 1) 78%);
		border-radius: 10px;
		display: flex;
		flex-direction: column;
		justify-content: flex-start;
		align-items: flex-start;
		gap: 12px;
		position: relative;
		overflow: hidden;
		z-index: 1;
		text-decoration: none;
		cursor: pointer;
		transition: all 0.3s ease;
	}

	.service-page .section-hero__fourth-card--gradient {
		background: linear-gradient(210deg, rgba(0, 168, 89, 1) 0%, rgba(4, 63, 35, 1) 78%);
	}

	.service-page .section-hero__fourth-card-title {
		font-family: 'Geometria', sans-serif;
		font-weight: 900;
		font-size: 24px;
		line-height: 1.2em;
		letter-spacing: 0.02em;
		text-transform: uppercase;
		color: #FFFFFF;
		margin: 0;
		width: 100%;
	}

	.service-page .section-hero__fourth-card-badge {
		font-family: 'Geometria', sans-serif;
		font-weight: 400;
		font-size: 14px;
		line-height: 1.2em;
		text-align: center;
		color: #FFFFFF;
		padding: 8px 20px;
		background: rgba(255, 255, 255, 0.1);
		border-radius: 40px;
		display: inline-block;
		margin-top: auto;
	}

	.service-page .section-hero__fourth-title {
		display: none;
	}


}
