/* front section columns */

section.first {
	padding-top: 30px;
	max-width: 1770px;
	margin: 0 auto;
}

/* columns-container */

.columns-container {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
  	margin: 0 auto;
}

/* < 1280 */
@media (max-width: 1279px) {
	.columns-container {
		gap: 20px;
	}
}

/* 1280–1365 */
@media (min-width: 1280px) and (max-width: 1365px) {
	.columns-container {
		gap: 21px;
	}
}

/* 1366–1919 */
@media (min-width: 1366px) and (max-width: 1919px) {
	.columns-container {
		gap: 23px;
	}
}

/* ≥ 1920 */
@media (min-width: 1920px) {
	.columns-container {
		gap: 30px;
	}
}

.column-first,
.column-third {
	width: 325px;
}

.column-second,
.column-fourth {
	width: 256px;
}

/* < 1280 */
@media (max-width: 1279px) {}

/* 1280–1365 */
@media (min-width: 1280px) and (max-width: 1365px) {
	.column-first,
	.column-third {
		width: 325px;
	}

	.column-second,
	.column-fourth {
		width: 256px;
	}
}

/* 1366–1919 */
@media (min-width: 1366px) and (max-width: 1919px) {
	.column-first,
	.column-third {
		width: 348px;
	}

	.column-second,
	.column-fourth {
		width: 272px;
	}
}

/* ≥ 1920 */
@media (min-width: 1920px) {
	.column-first,
	.column-third {
		width: 470px;
	}

	.column-second,
	.column-fourth {
		width: 370px;
	}
}

.column-first {
	overflow: hidden;
}

.column-first img {
	height: 390px;
}

.column-second img {
	height: 420px;
}

.column-third img {
	height: 120px;
}

.column-fourth {
	height: 570px;
}

.column-fourth {	
	overflow: hidden;
}


.column-first .block-link {
	background: rgba(205, 159, 204, 1);
    height: 90px;
}

.column-second .block-link {
	background: rgba(166, 216, 212, 1);
    height: 60px;
}

.column-third .block-сontent {
	background: rgba(255, 180, 104, 1);
	height: 360px;
	padding: 30px;
	border-radius: 30px;
	display: flex;
    flex-direction: column;
}

.column .block-сontent p {
	margin-top: 0;
}

.column-third .header-block {
	font-weight: 400;	
	letter-spacing: 0.05em;
	vertical-align: middle;
	text-transform: uppercase;
}

.column-third .bottom-block {
	background: #fff;
	display: flex;
  	justify-content: space-between;
  	align-items: center;
  	padding: 26px 30px;
  	border-radius: 50px;
  	text-decoration: none;
  	color: #000;
  	font-weight: 400;
	margin-top: auto;
	letter-spacing: 0;
	text-transform: uppercase;
}

.arrow {
	margin-left: 10px;
	display: block;
    font-weight: 400;
    font-size: 40px;
    line-height: 1.2em;
    letter-spacing: 0.05em;
    text-align: center;
    vertical-align: middle;
    text-transform: uppercase;
}

.column > :first-child {
	margin-bottom: 30px;
}

.column img {
	border-radius: 30px;
	width: 100%;
	object-fit: cover;
	display: block;
}

.column .block-link {
	box-sizing: content-box;
	align-items: center;
	padding: 30px;
	border-radius: 30px;
	text-decoration: none;
	color: #000;
	display: flex;
	font-weight: 400;	
	letter-spacing: 0.05em;
	vertical-align: middle;
	text-transform: uppercase;
}

@media (max-width: 1279px) {
	.column .block-link {
		font-size: 20px;
		line-height: 22px;
	}
	.column-third .header-block,
	.column-third .bottom-block {
		font-size: 25px;
		line-height: 26px;
	}
}

@media (min-width: 1280px) and (max-width: 1365px) {
	.column .block-link {
		font-size: 20px;
		line-height: 22px;
	}
	.column-third .header-block,
	.column-third .bottom-block {
		font-size: 25px;
		line-height: 26px;
	}
}

@media (min-width: 1366px) and (max-width: 1919px) {
	.column .block-link {
		font-size: 22px;
		line-height: 24px;
	}
	.column-third .header-block,
	.column-third .bottom-block {
		font-size: 28px;
		line-height: 30px;
	}
}

@media (min-width: 1920px) {
	.column .block-link {
		font-size: 25px;
		line-height: 26px;
	}
	.column-third .header-block,
	.column-third .bottom-block {
		font-size: 40px;
		line-height: 42px;
	}
}

/* front section about */

.node-type-front section.about {
	max-width: 770px;
	margin: 60px auto 70px;
}

.node-type-front section.about h1 {
	text-align: center;
	text-transform: uppercase;
	font-size: 48px;
	margin-top: 0;
	font-weight: 400;
	line-height: 1.2em;
	letter-spacing: 0.05em;
}

.node-type-front section.about .text-block{
	font-weight: 400;
	font-size: 20px;
	line-height: 1.2em;
	letter-spacing: 0;
}

.node-type-front section.contacts {
	max-width: 1170px;
	margin: 0 auto;
	background: rgba(185, 205, 218, 1);
	border-radius: 40px;
}

.node-type-front section.contacts .section-wrap {
	padding: 60px 30px;
	display: flex;
	align-items: center;
    justify-content: space-between;
}

.node-type-front section.contacts h3 {
	margin: 0;
	font-weight: 900;
}

.node-type-front section.contacts div {
	font-weight: 400;
}

.node-type-front section.contacts h3,
.node-type-front section.contacts div {
	font-size: 25px;
	letter-spacing: 0;
}

/*
================================================
  ADAPTIVE FRONT BLOCKS
================================================
*/
.columns-container {
  display: flex;
  gap: 20px;
}

.column {
  display: flex;
  flex-direction: column;
}


@media (max-width: 800px) {
  .node-type-front section.contacts .section-wrap {
    flex-direction: column; /* Выстраиваем элементы в столбик */
    gap: 30px;              /* Создаем отступ 30px между строками */
  }
}

@media (max-width: 600px) {
  .columns-container {
    display: flex;
    flex-direction: column;
  }

  /* ВАЖНО: "разбираем" колонку на части */
  .column-third {
    display: contents;
  }

  /* Логотип */
  .column-third img {
    order: 1;
  }

  /* Правая колонка */
  .column-fourth {
    order: 2;
  }

  /* Контент из третьей */
  .column-third .block-сontent {
    order: 3;
  }

  /* Остальные */
  .column-first {
    order: 4;
  }

  .column-second {
    order: 5;
  }

  /* Картинка → текст */
  .column-first img,
  .column-second img {
    order: 1;
  }

  .column-first .block-link,
  .column-second .block-link {
    order: 2;
  }
}

@media (max-width: 600px) {

	.first img {
		width: 100%;
		height: auto;
	}

	.column-fourth {
		height: inherit;
	}

	.column-second, 
	.column-fourth,
	.column-first, 
	.column-third {
		width: 100%;
	}

	.column > :first-child {
		margin-bottom: 0;
	}

	.column-third .bottom-block {
	    padding: 7px 20px;
	    border-radius: 20px;
	}

	.first .arrow {
		font-size: 25px;
	}

	.column .block-link {		
		border-radius: 20px;
		padding: 20px;
		margin-top: -100px;
	}

	.column-third .block-сontent {
		padding: 20px;
		height: 214px;
		margin-top: -232px;	
	}

	.first .block-сontent {
		width: 100%;
    	box-sizing: border-box;
	}

	.node-type-front section.about {
	    margin: 40px auto 20px;
	}

	.node-type-front section.about h1 {
		font-size: 20px;
	}

	.node-type-front section.about .text-block {
		font-size: 16px;
	}

	.node-type-front section.contacts .section-wrap {
	    padding: 30px;
	    display: block;
	    align-items: inherit;
	    justify-content: inherit;
	}

	.node-type-front section.contacts .section-wrap h3 {
		font-size: 15px;
		margin-bottom: 20px;
	}

	.node-type-front section.contacts .section-wrap div {
		font-size: 15px;
	}

	.node-type-front section.contacts .section-wrap .phone {
		margin-bottom: 20px;
	}


	.column-fourth img {
		max-height: 480px;
	}
}