/* Safe mobile text fixes for potvardi-porachka.com */

html,
body {
	max-width: 100%;
	overflow-x: hidden;
}

.tm-home-right .tm-section-text:first-child {
	margin-top: 24px;
}

@media screen and (min-width: 801px) {
	.tm-home-right .tm-section-text:first-child {
		margin-top: 48px;
	}

	.tm-section {
		height: auto;
		min-height: 600px;
	}

	.tm-white-curve-text,
	.tm-home-right {
		overflow-wrap: break-word;
		word-wrap: break-word;
		word-break: normal;
	}

	.tm-white-curve-text .thin-font,
	.tm-home-right {
		font-size: 0.94rem;
		line-height: 1.55;
	}

	.tm-section-header {
		margin-bottom: 18px;
	}

	.tm-section-text {
		line-height: 1.3;
		margin-bottom: 10px;
	}

	.tm-home-right .tm-section-text:nth-of-type(2),
	.tm-home-right .tm-section-text:nth-of-type(3) {
		margin-top: 12px;
	}

}

@media screen and (min-width: 992px) {
	.navbar-container {
		gap: 12px;
	}

	.navbar-container > .btn.p100 {
		flex: 0 0 auto;
		white-space: nowrap;
		padding: 0.5rem 0.75rem;
		font-size: 0.95rem;
	}

	.navbar {
		flex: 1 1 auto;
	}

	.navbar-nav {
		display: flex;
		justify-content: flex-end;
		flex-wrap: nowrap;
		width: 100%;
	}

	.nav-item {
		font-size: 1.45em;
	}

	.navbar-nav .nav-link,
	.navbar-nav .nav-link:focus {
		white-space: nowrap;
		padding: 0.45em 0.58em;
	}
}

@media screen and (max-width: 800px) {
	.thin-font,
	.tm-section-text,
	p,
	h1,
	h2,
	h3,
	h4,
	h5,
	h6,
	a,
	.btn {
		overflow-wrap: break-word;
		word-wrap: break-word;
		word-break: normal;
	}

	.tm-home-right .tm-section-text:first-child {
		margin-top: 1px;
	}

	.tm-home-right .tm-section-text:nth-of-type(2),
	.tm-home-right .tm-section-text:nth-of-type(3) {
		margin-top: 18px;
	}

	.btn.p100 {
		white-space: normal;
		line-height: 1.25;
	}

	#tm-section-2 .btn.p100,
	#tm-section-3 .btn.p100,
	#tm-section-4 .btn.p100 {
		display: block;
		box-sizing: border-box;
		width: 100%;
		margin: 8px 0;
		padding: 11px 12px;
		text-align: center;
	}

	.tm-footer .btn.p100 {
		display: block;
		width: 100%;
		margin: 8px 0;
		padding: 11px 12px;
		text-align: center;
	}
}
