.top-block .container {
    padding-top: 20px;
}

.top-block .container {
	display: flex;
	gap: 38px;
}

.top-block-left {
	width: 52%;
}
.top-block-right {
	width: 48%;
}
.top-block-left .gallery {
	gap: 24px;
    display: grid;
    margin: 0;
	grid-auto-flow: column;
    grid-template-rows: repeat(2,251px);
    grid-template-columns: 296px auto;	
}
.gallery-item:first-child {
    grid-row: 1/-1;
    -webkit-box-ordinal-group: initial;
    -ms-flex-order: initial;
    order: initial;
}
.top-block-title {
	font-size: 18px;
	line-height: 1.3;
	font-weight: 700;
	text-transform: uppercase;
	margin-bottom: 15px;
}

.top-block-right .btn {
	margin-top: 15px;
	height: 51px;
	width: 255px;
	font-size: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.gallery {
    gap: 24px;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    margin: 0;
}

.how-block {
	padding: 80px 0;
}

.how-block .section-title {
    margin-bottom: 50px;
}

.how-boxes {
    display: grid;
    gap: 19px;
    grid-template-columns: repeat(3,1fr);
}

.how-item {
    background: #F7F7F7;
    border-radius: 10px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    text-align: center;
	font-size: 16px;
	line-height: 1.4;
}

.how-item img {
	margin-bottom: 15px;
	height: 55px;
	width: auto;
}

.how-title {
	position: relative;
	padding-bottom: 30px;
	font-size: 18px;
	font-weight: 700;
}

.how-title::before {
	content: "";
	width: 100%;
	height: 2px;
	background: var(--green);
	position: absolute;
	bottom: 15px;
	left: 0;
}

.section.why {
	padding: 85px 0;
	position: relative;
}

.section.why.second {
	padding: 75px 0;
}

.section.why  .section-title {
	font-size: 28px;
	color: #fff;
	text-align: center;
}
.section.why .section-subtitle {
    font-size: 20px;
    color: #fff;
    text-align: center;
    max-width: 800px;
    margin: 10px auto 30px;
}

.why-boxes {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(4,1fr);
	color: #fff;
}
.why-item {
	text-align: center;
}
.why-number {
	color: var(--green);
	font-size: 80px;
	line-height: 1;
	font-weight: 800;
	margin-bottom: 13px;
}

.why-text {
	font-weight: 700;
	text-transform: uppercase;
}

.section.why .section-title.green {
    color: var(--green);
	margin-bottom: 40px;
}

.why-items {
	display: grid;
    column-gap: 44px;
	row-gap: 30px;
    grid-template-columns: repeat(2,1fr);
}

.why-box {
	display: grid;
	gap: 30px;
	grid-template-columns: 152px auto;
}

.why-box .why-box-image {
	width: 152px;
	height: 152px;
	border-radius: 50%;
	border: 2px dashed #5EBD0B;
	display: flex;
	align-items: center;
	justify-content: center;
}

.why-box .why-box-image img {
	border-radius: 50%;
	display: block;
	width: 126px;
	height: 126px;
}

.why-box-title {
	position: relative;
	font-size: 18px;
	line-height: 1.35;
	font-weight: 700;
	padding-bottom: 30px;
	text-transform: uppercase;
}

.why-box-title:before {
	content: "";
	position: absolute;
	width: 100%;
	height: 2px;
	background-color: var(--green);
	bottom: 15px;
}

.why-box-text {
	font-size: 16px;
}

.bottom-section {
	padding: 85px 0;
	background-attachment: fixed;
	background-image: url(/wp-content/themes/dvor/img/bottom-block-bg.jpg);
	background-size: cover;
}

.bottom-section .container {
	background: rgba(255, 255, 255, 0.9);
	border-radius: 10px;	
	padding: 47px 42px;
	display: grid;
    gap: 38px;
    grid-template-columns: repeat(2,1fr);
	line-height: 1.4;
	align-items: center;
}

.bottom-section-title {
	position: relative;
	font-size: 18px;
	line-height: 1.35;
	font-weight: 700;
	padding-bottom: 30px;
	text-transform: uppercase;
	text-align: center;
}

.bottom-section-title::before {
	content: "";
	position: absolute;
	width: 100%;
	height: 2px;
	background-color: var(--green);
	bottom: 15px;
	left: 0;
}

.bottom-section-right {
	display: grid;
    gap: 17px;
    grid-template-columns: repeat(2,1fr);
	height: 100%;
	width: 100%;
}

.bottom-section-right img {
	display: block;
	width: 250px;
    height: 536px;
	object-fit: cover;
}

@media (max-width: 1440px){
	.top-block-left .gallery {
		gap: 20px;
		grid-template-rows: repeat(2,220px);
		grid-template-columns: 240px auto;
	}
	.section.why .section-subtitle {
		font-size: 18px;
		max-width: 700px;
	}
	.why-text {
		font-size: 14px;
	}
	.why-number {
		font-size: 65px;
	}
	.bottom-section .container {
		padding: 30px;
		gap: 30px;
	}
	.bottom-section-title {
		font-size: 16px;
	}
	.bottom-section-left {
		font-size: 16px;
	}
}


@media (max-width: 1280px){
	.top-block-left .gallery {
		gap: 20px;
		grid-template-rows: repeat(2,200px);
		grid-template-columns: 200px auto;
	}
	.top-block-right {
		font-size: 16px;
	}
	.how-title {
		font-size: 16px;
	}
	.how-item {
		padding: 20px 15px;
		font-size: 14px;
	}
	.why-items {
		column-gap: 30px;
		row-gap: 30px;
	}
	.why-box {
		gap: 20px;
		grid-template-columns: 125px auto;
	}
	.why-box .why-box-image {
		width: 125px;
		height: 125px;
	}
	.why-box .why-box-image img {
		width: 110px;
		height: 110px;
	}
	.why-box-title {
		font-size: 16px;
	}
	.why-box-text {
		font-size: 14px;
	}
	.bottom-section {
		padding: 60px 0;
	}
	.bottom-section .container {
		padding: 20px;
		gap: 20px;
	}
	.bottom-section-title {
		font-size: 14px;
	}
	.bottom-section-left {
		font-size: 14px;
	}

}


@media (max-width: 1080px){
	.top-block-left .gallery {
		gap: 15px;
		grid-template-rows: repeat(2,200px);
		grid-template-columns: 180px auto;
	}
	.top-block-right {
		font-size: 14px;
	}
	.how-boxes {
		grid-template-columns: repeat(3,1fr);
	}
	.how-title {
		font-size: 14px;
	}
	.how-item {
		padding: 15px;
		font-size: 13px;
	}
	.section.why .section-subtitle {
		font-size: 16px;
		max-width: 600px;
	}
	.section.why .section-title {
		font-size: 24px;
	}
	.why-number {
		font-size: 40px;
	}
	.why-text {
		font-size: 11px;
	}
	.section.why.second {
		padding: 65px 0;
	}
	.why-box-title {
		font-size: 13px;
	}
	.why-box-text {
		font-size: 13px;
		line-height: 1.4;
	}
	.why-box {
		grid-template-columns: 90px auto;
	}
	.why-box .why-box-image {
		width: 90px;
		height: 90px;
	}
	.why-box .why-box-image img {
		width: 80px;
		height: 80px;
	}
}

@media (max-width: 991px){
	.top-block .container {
		gap: 30px;
		flex-direction: column;
	}
	.top-block-left {
		width: 100%;
		display: flex;
		justify-content: center;
	}
	.top-block-right {
		width: 100%;
		display: flex;
		justify-content: center;
		text-align: center;
		align-items: center;
		flex-direction: column;
	}
	.top-block-right {
		font-size: 16px;
	}
	.top-block-right .btn {
		margin-top: 25px;
	}
	.section.why {
		padding: 65px 0;
	}
	.how-block {
		padding: 50px 0;
	}
	.how-block .section-title {
		margin-bottom: 30px;
	}
	.how-boxes {
		grid-template-columns: repeat(2,1fr);
	}

	.why-boxes {
		gap: 20px;
		grid-template-columns: repeat(2,1fr);
	}
	.why-items {
		grid-template-columns: repeat(1,1fr);
	}
}



@media (max-width: 767px){
	.top-block-left .gallery {
		grid-template-rows: repeat(2,150px);
		grid-template-columns: 180px auto;
	}

	.how-boxes {
		grid-template-columns: repeat(1,1fr);
	}

	.how-item {
		padding: 25px;
		font-size: 16px;
	}
	.how-title br {
		display: none;
	}
	.how-title {
		font-size: 18px;
	}
	.bottom-section {
		padding: 0;
	}
	.bottom-section .bg-image {
		display: none;
	}
	.bottom-section .container {
		grid-template-columns: repeat(1,1fr);
	}
}