:root {
  --text-color-dark: #333;
  --text-color-light: #fff;
  --bg-dark: #333;
  --bg-light: #fff;
  --btn-color-hover: #193ef5;
  --btn-color-inactive: #a69f9f;
  --text-shadow: 0.5rem 0.5rem 20px rgba(0, 0, 0, 0.8);
  --hero-gradient: linear-gradient(180deg, rgb(41, 61, 107) 0%, rgba(237, 226, 219, 0.5) 50%, rgb(46, 37, 33) 100%);
}

@font-face {
  font-family: 'Marcellus';
  src: url('../assets/marcellus.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins Bold';
  src: url('../assets/Poppins-Bold.ttf') format('truetype');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins Regular';
  src: url('../assets/Poppins-Regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}


* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background: var(--hero-gradient);
  width: 100%;
  height: 100%;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
}

body {
  color: var(--text-color-light);
  font-family: 'Poppins Regular', serif;
}

#section1 {
  height: 100vh;
  max-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background-image: var(--hero-gradient);
  background: url('../assets/hero.webp') no-repeat center center/cover;
}

#sectionPin {
  height: 450vh;
  background: #37762900;
  position: relative;
}
.pin-wrap-sticky {
  position: sticky;
  position: -webkit-sticky;
  top: 0;
  height: 100vh;
  overflow: hidden; 
}
.pin-wrap {
  display: flex;
  width: 300vw;
  height: 100vh;
  will-change: transform;
  -webkit-overflow-scrolling: touch;
  /* overflow-x: scroll; Включить горизонтальный скролл */
}
.horizontal-section {
  width: 100vw;
  height: 100vh;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
}

#section1,
#section2,
#section3,
#section4,
#contact{
  min-height: 100vh;
}

#section2 { background: salmon; }
#section3 { background: orange; }
#section4 { background: green; }

#section1 {
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  position: relative;
  overflow: hidden; 
  will-change: transform, height;
}
.shrink-wrap {
  /*position: absolute;*/
  /*top: 50%;*/
  /*left: 50%;*/
  /*width: 100%;*/
  /*height: 100vh;*/
  /*transform: translate(-50%, -50%);*/
  display: flex;
  align-items: center;
  justify-content: center;
}

/* CTA BTN */

.cta {
  display: inline-block;
  padding: 1rem 2rem;
  margin-top: 2rem;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text-color-light);
  background-color: var(--bg-dark);
  border: 2px solid var(--text-color-light);
  border-radius: 50px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.3s, color 0.3s;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5) inset;
}
.cta:hover {
  background-color: var(--text-color-light);
  color: var(--bg-dark);
}


/* HERO SECTION */

.hero {
  width: 100%;
  height: min(100%, 100vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: min(5rem, 3vh);
  padding: min(5rem, 10vw);
}

@media (max-width: 768px) {
  .hero {

  }
  
}

.hero h1,
.hero h3, 
.hero p {
  text-align: center;
}

.hero h1.title {
  --color-from: #fdd3d3 -15%;
  --color-to: #641313 100%;

  font-family: 'Poppins Bold', sans-serif;
  font-weight: 700;
  font-size: clamp(3rem, 8vw, 6rem);
  color: var(--text-color-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 2px 3px 10px rgba(0, 0, 0, 0.2);
  background: linear-gradient(270deg, var(--color-from), var(--color-to));
  background: -moz-linear-gradient(270deg, var(--color-from), var(--color-to));
  background: -o-linear-gradient(270deg, var(--color-from), var(--color-to));
  background: -webkit-linear-gradient(270deg, var(--color-from), var(--color-to));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  -moz-background-clip: text;
  -moz-text-fill-color: transparent;
  -o-background-clip: text;
  -o-text-fill-color: transparent;
  line-height: 1.25;
  margin-bottom: 6rem;
}

.hero .description {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.hero .description h3 {
  font-size: min(2rem, 6vw);
  color: var(--text-color-light);
  text-shadow: var(--text-shadow);
  max-width: 600px;
  margin-bottom: 2rem;
}

.hero .description p {
  font-size: min(1.3rem, 4vw);
  font-weight: 100;
  color: var(--text-color-light);
  text-shadow: var(--text-shadow);
  max-width: 600px;
}

@media (max-width: 768px) {
  .hero {
    gap: min(2rem, 10vh);
    padding: min(3rem, 10vw);
    justify-content: space-around;
  }

  .hero h1.title {
    --color-from: #ffffff 20%;
    --color-to: #641313 100%;

    flex-wrap: wrap;
    font-size: clamp(2.7rem, 13vw, 6rem);
    margin-bottom: min(2.5rem, 3vh);
    
    background: linear-gradient(270deg, var(--color-from), var(--color-to));
    background: -moz-linear-gradient(270deg, var(--color-from), var(--color-to));
    background: -o-linear-gradient(270deg, var(--color-from), var(--color-to));
    background: -webkit-linear-gradient(270deg, var(--color-from), var(--color-to));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-background-clip: text;
    -moz-text-fill-color: transparent;
    -o-background-clip: text;
    -o-text-fill-color: transparent;
  }
  .hero .description h3 {
    font-size: min(1.5rem, 6vw);
  }

  .hero .description p {
    font-size: min(1rem, 3vw);
    font-weight: lighter;
  }
}


/* SLIDES */

.slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: clamp(200px, 80%, 100%);
}

.slide h2 {
  font-size: 4rem;
  margin-bottom: 3rem;
  text-align: center;
}

.slide p {
  font-size: clamp(1.5rem, 2vw, 2rem);
  font-weight: 100;
  text-align: center;
  max-width: 600px;
}


/* CONTACT FORM */

#contact {
  height: 100vh; 
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: lightgray;
}

#contact .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
  width: 100%;
}

#contact .container .form-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

#contact .container h2 {
  font-size: 4rem;
  margin-bottom: 3rem;
  color: var(--text-color-dark);
  text-align: center;
}

@media (max-width: 768px) {
  #contact .container h2 {
    font-size: min(3rem, 8vw);
    margin-bottom: 1rem;
  }      
}

#form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

#form input,
#form textarea {
  padding: 1rem;
  font-size: 1.5rem;
  border: 2px solid var(--text-color-dark);
  border-radius: 5px;
  width: 100%;
}

#form input[type="submit"] {
  background-color: var(--bg-dark);
  color: var(--text-color-light);
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
}
#form input[type="submit"]:hover {
  background-color: var(--btn-color-hover);
  transform: scale(0.98);
  transition: background-color 0.3s, transform 0.3s;

}
#form input[type="submit"]:active {
  transform: scale(0.95);
  transition: transform 0.3s;
}
#form:invalid input[type="submit"] {
  background-color: var(--btn-color-inactive);
  cursor: not-allowed;
  transform: scale(1);
  transition: none;
}

#form label {
  font-size: 1.5rem;
  color: var(--text-color-dark);
}

#form textarea {
  font-family: 'Poppins Regular', sans-serif;
  max-width: 100%;
}

#form-done {
  font-size: 1.5rem;
  padding: 10px;
  background-color: #285028;
  opacity: 1;
  transition: opacity 0.5s;
}

#form-done h2.form-title {
  font-size: 2rem;
  color: var(--text-color-light);
  color: white;
  margin: 0;
}

.hide {
  opacity: 0!important;
  transition: opacity 0.5s!important;
}
.delete {
  display: none!important;
} 



/* FOOTER */
footer  {
  display: flex;
  padding: 4rem 1rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  font-size: 1rem;
  background: var(--bg-dark);
  color: var(--text-color-light);
}

footer h4 {
  font-size: min(1.5rem, 5vw);
}

footer .legal {
  display: flex;
  gap: 1rem;
}

footer .legal a {
  text-decoration: none;
  color: var(--text-color-light);
}