/* First block */

@media(max-width: 1250px){
	.headers p{
		margin: 4.5vh 3%;
    font-size: 3.4vh;
	}
}
@media(max-width: 1100px){
	.first-block .personal-image {
		top: 20%;
		width: 100%;
		height: 81%;
  }
	.headers p{
		margin: 7.5vh 3%;
    font-size: 2.3vh;
	}
	.headers p:nth-child(2)::after{
		font-size: 2.8vh;
    bottom: -11%;
    right: 20%;
}
	.curves{
	transform: translate(-60%, -22%) scale(7.6) rotate(344deg);
	}
}
@media(max-width: 1000px){
	.headers p{
		margin: 8vh 3%;
    font-size: 2.5vh;
		padding: 0;
	}
		.headers p:nth-child(2)::after{
		font-size: 2.8vh;
    bottom: -46%;
    right: 20%;
	}
}
@media(max-width: 950px){
	.headers p{
		margin: 8vh 3%;
    font-size: 2.1vh;
	}
}
@media(max-width: 900px){
	.headers p{
    font-size: 2.1vh;
	}
	.first-block .personal-image {
    top: 12%;
    width: 100%;
    height: 90%;
}
}
@media(max-width: 820px){
	.headers p{
		margin: 8vh 3%;
    font-size: 2.2vh;
	}
	.first-block .personal-image {
		top: 21%;
		width: 100%;
		height: 81%;
	}
}

@media(max-width: 730px){
	.curves{
		opacity: .45;
	}
	.headers p:nth-child(1){
		order: 2;
		line-height: clamp(2.1rem, 6.2vw, 6rem);
		font-size: clamp(2.1rem, 6vw, 6rem);
	}
	.headers p:nth-child(2){
		font-size: clamp(1rem, 4.3vw, 4rem);
		line-height: clamp(1rem, 4.3vw, 4rem);
	}
	.headers p:nth-child(2)::after{
		font-size: 2.8vh;
		bottom: -37%;
		right: 20%;
	}
	.headers{
		flex-direction: column;
		align-items: start;
		margin-top: 4vh;
	}
	.headers p{
		margin: 1.7vh 5%;
    font-size: 4vh;
	}
    .first-block .personal-image {
        top: 35%;
        width: 100%;
        height: 67%;
    }
	.rollingText02{
		font-size: 7.5vh;
	}
	.wrapperRollingText02 {
    top: 31%;
	}
	.rollingText {
    font-size: 14vh;
	}
}

@media(max-width: 500px){
	.first-block{
		min-height: 100vh;
	}
	.headers p:nth-child(1){
		order: 2;
		line-height: clamp(1.5rem, 6vw, 5rem);
		font-size: clamp(1.5rem, 6vw, 5rem);
	}
	.headers p:nth-child(2){
		font-size: clamp(1rem, 4.3vw, 4rem);
		line-height: clamp(1rem, 4.3vw, 4rem);
	} 
	.headers p:nth-child(2)::after{
		font-size: 2.8vh;
		bottom: -46%;
		right: 16%;
	}
	.wrapperRollingText02 {
    top: 28%;
	}
	.rollingText {
    font-size: 11vh;
	}
}
@media(max-width: 360px){
		.headers p:nth-child(1){
		order: 2;
		line-height: clamp(1.3rem, 5vw, 4rem);
		font-size: clamp(1.3rem, 5vw, 4rem);
	}
}

@media (max-height: 1100px) and (orientation: landscape){
		.headers p{
			margin: 7.5vh 3%;
			font-size: 3.5vh;
	}
	.first-block .personal-image {
        top: 3%;
        width: 100%;
        height: 100%;
	}
	.headers p:nth-child(2)::after{
		font-size: 4vh;
		bottom: -13%;
		right: 19%;
	}
}
@media (max-height: 750px) and (orientation: landscape){
  .headers p:nth-child(1) , .headers p:nth-child(2){
    font-size: clamp(18px, 2.5vw, 28px);
    margin: 5vh 3%;
  }
	.headers {
		display: flex;
		justify-content: space-between;
		align-items: center;
		flex-direction: unset;
	}
	.headers p:nth-child(1){
	order: 1;
	}
	.headers p:nth-child(2){
	order: 2;
	}
	.headers p:nth-child(2)::after{
		font-size: 4vh;
		bottom: -4%;
		right: 27%;
	}
  .rollingText {
    font-size: 12vh;
  }
    .first-block .personal-image {
        top: 9%;
        width: 100%;
        height: 96%;
    }
}
@media (max-height: 500px) and (orientation: landscape){
	.headers p:nth-child(2)::after{
		font-size: 5vh;
		bottom: -47%;
		right: 19%;
	}
}

/* Second block */

@media(max-width: 1100px){
	.why-me{
		grid-template-columns: 1fr 1fr;
	}
}

	@media(max-width: 980px){
	.why-me{
		gap: clamp(2.5em, 1.75vw, 2.5em);
	}
	.grid-block {
    padding: 25px;
		padding-bottom: 15px;
    border-radius: 10px;
	}
	.grid-block-header{
		font-size: clamp(1.45em, 2.5vw, 2em);
	}
}

@media (max-width: 760px){
		.why-me{
		grid-template-columns: 1fr;
	}
	.header{
		padding-bottom: 3rem;
		
	}
	.header span{
		display: inline;
	}
}
@media (max-width: 440px){
	.header{
		padding: 0 1rem 3rem;
		font-size: clamp(1.7em, 2vw, 3em);
	}
	.why-me{
		width: 90%;
	}
	.grid-block-header{
		font-size: clamp(1.45em, 2.2vw, 2em);
	}
}
@media (max-width: 350px){
	.second-block{
		padding: 85px 0;
	}
	.header{
		padding: 0 1rem 5rem;
		font-size: clamp(1.5em, 2vw, 2.7em);
	}
}

/* Third block */

@media (max-width: 760px) {
	.third-block-wrapper {
    width: min(80%, 1400px);
		padding: clamp(100px, 7vw, 150px) 0;
}
	.third-block-wrapper {
		grid-template-columns: 1fr;
	}
	.third-block-text p:nth-child(2) {
		max-width: 100%;
		padding: 0;
		word-break: break-word;
		hyphens: auto;
	}
	.third-block-image {
		margin-top: 40px;
	}
	.third-block-text p:nth-child(2) {
    font-size: clamp(1.25em, 1.8vw, 1.3em);
    letter-spacing: 0.8px;
    line-height: 1.5;
    font-weight: 300;
    color: white;
    max-width: 90%;
}
	.about-me{
		font-size: clamp(2.85em, 2.8vw, 4em);
	}
}

@media (max-width: 440px){
	.third-block-wrapper {
    width: min(90%, 1400px);
		padding: clamp(130px, 7vw, 150px) 0;
		word-break: break-word;
		hyphens: auto;
}
}

/* Fourth block */

@media(max-width: 1450px){
	.news-button.extension p {
		font-size: clamp(1.8em, 1.8vw, 4em);
	}
}
@media (max-width: 1300px){
	.fourth-block-wrapper {
    width: min(80%, 1000px);
    margin: 0 auto;
	}
	.news-header {
			padding: 0 0 clamp(3rem, 4vw, 5rem) 0;
			font-size: clamp(1.75em, 2.6vw, 3em);
	}
	.text-n-button{
		padding-right: 20px;
	}
	.text-n-button p {
			font-size: clamp(1.25em, 1.8vw, 1.3em);
			line-height: clamp(1.125em, 1.3vw, 3em);
	}
	.news-button{
		margin-top: 30px;
		padding: clamp(1.2em, 1.2vw, 4em);
		min-width: 80%;
	}
		.news-button.extension p {
		font-size: clamp(1.6em, 1.6vw, 4em);
	}
}
@media (max-width: 1200px){
		.news-header {
			padding: 0 0 clamp(2.5rem, 3.5vw, 5rem) 0;
			font-size: clamp(1.75em, 2.6vw, 3em);
	}
	.text-n-button p {
			font-size: clamp(1.25em, 1.8vw, 1.3em);
			line-height: clamp(1em, 1.8vw, 1.4em);
	}
}
@media (max-width: 1100px){
	.fourth-block-wrapper {
    width: min(90%, 900px);
    margin: 0 auto;
	}
		.news-header {
			padding: 0 0 clamp(2.5rem, 3.5vw, 5rem) 0;
			font-size: clamp(1.75em, 2.6vw, 3em);
	}
	.text-n-button p {
		letter-spacing: 1px;
    font-size: clamp(1.25em, 1.8vw, 1.3em);
    line-height: clamp(1em, 1.4vw, 1.4em);
	}
}
@media(max-width: 1000px){
	.news-block.extension>.news-content-wrapper>.cover video {
    transform: scale(1.1);
	}
}
@media(max-width: 950px){
	.news-content-wrapper{
		flex-direction: column;
	}
	.news-header{
		text-align: center;
	}
	.news-header span{
		display: initial;
	}
	.cover{
    order: 1;
		width: 100%;
		max-width: none;
	}
	.text-n-button{
		padding: 0;
		padding-top: clamp(15px, 2vh, 30px);
		order: 2;
		width: 100%;
		max-width: none;
	}
	.news-button{
		margin: 0 auto;
		margin-top: 50px;
		padding: clamp(1.6em, 2.3vw, 3em);
		width: 90%;
	}
	.fourth-block-wrapper {
    width: min(90%, 600px);
    margin: 0 auto;
	}
	.text-n-button p {
    letter-spacing: 1px;
    font-size: clamp(1.25em, 1.8vw, 1.3em);
    line-height: clamp(1.25em, 1.8vw, 1.4em);
	}
	.news-button.extension p {
    font-size: clamp(1.8em, 2vw, 4em);
	}
	.news-block .shine {
		width: 169%;
		top: -110%;
		right: -90%;
		z-index: 0;
		opacity: 0.3;
	}
}

@media(max-width: 850px){
	    .news-block .shine {
        width: 108%;
        top: -60%;
        right: -54%;
        z-index: 0;
        opacity: 0.3;
    }
}

@media(max-width: 460px){
	.news-button{
		margin: 0 auto;
		margin-top: 50px;
		padding: clamp(1.4em, 2.2vw, 3em);
		width: 100%;
	}
	.news-block{
		padding: 40px 15px;
	}
	.news-block .shine {
		width: 143%;
		top: -51%;
		right: -80%;
		z-index: 0;
		opacity: 0.3;
	}
}

/* Fifth block */

@media(max-width: 1400px){
	.cooperation{
		font-size: calc(clamp(2.2em, 3vw, 8em) * .875);
		padding-top: 1em;
	}
}
@media(max-width: 1200px){
	.form {
    padding-left: 4em;
    padding-top: 2em;
    z-index: 2;
	}
	button[type="submit"] {
    border-radius: 10px;
    margin-top: 50px;
    padding: 17px 0;
    font-size: calc(clamp(1.8em, 2.2vw, 4em) * .875);
	}
	.radio-group {
    width: 70%;
	}
}

@media(max-width: 1000px){
	label {
    margin-top: 10px;
    font-size: clamp(18px, 1.8vw, 20px);
    padding-bottom: 13px;
    letter-spacing: 1px;
	}
	.cooperation {
			font-size: calc(clamp(2.2em, 3vw, 8em) * .875);
			padding-top: 0em;
    }
		button[type="submit"] {
			border-radius: 10px;
			margin-top: 50px;
			padding: 15px 0;
			font-size: calc(clamp(1.5em, 2vw, 4em) * .875);
    }
	.footer p {
		font-size: 17px;
	}
}

@media(max-width: 950px){
	.form {
		padding-left: 2em;
	}
	.cooperation {
		font-size: clamp(25px, 3vw, 45px);
		padding-top: 0em;
	}
	.radio-group label{
		font-size: clamp(16px, 1.8vw, 20px);
	}
	.radio-group {
		width: 75%;
	}
}
@media (max-width: 830px) {
    .radio-group {
        width: 85%;
    }
}
@media(max-width: 760px){
	.gradient-overlay{
		opacity: .75;
	}
	.fifth-block-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    position: relative;
    justify-self: center;
		justify-content: center;
    margin: 0 auto;
    width: min(90%, 1400px);
	}
	.line{
		display: none;
	}
	.me-small{
		display: none;
	}
	.cooperation{
		text-align: center;
		padding: 0;
		font-size: clamp(25px, 5vw, 35px);
		margin-bottom: clamp(2em, 2vw, 4em);
	}
	.wrapper-cooperation {
    width: 100%;
    justify-content: center;
	}
	.form{
		padding-left: 0;
	}
	label {
    margin-top: 10px;
    font-size: clamp(20px, 2vw, 25px);
    padding-bottom: 16px;
    letter-spacing: 1px;
	}
	input {
		font-size: clamp(20px, 2vw, 25px);
		margin-bottom: 15px;
		letter-spacing: .7px;
	}
}
@media (max-width: 440px) {
	.cooperation {
		font-size: clamp(1.7em, 2vw, 3em);
		margin-bottom: clamp(1em, 1.5vw, 3em);
	}
}
@media (max-width: 760px) {
  .footer {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "center center"
      "tg wa";
    justify-items: center;
    row-gap: 10px;
  }

  .footer p:nth-child(1) { grid-area: center; 
		margin-bottom: 20px;
	}
  .footer p:nth-child(2) { grid-area: tg; }
  .footer p:nth-child(3) { grid-area: wa; }
}

