:root {
  --primary-text-color: #acacac;
  --white: #ffffff;
  --white-transparent: #ffffffcc;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Calibri", sans-serif;
}
html {
  scroll-behavior: smooth;
}

body {
  background-color: RGB(39, 48, 56);
  color: #333;
}
.title {
  font-size: 3.3rem;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-text-color);
  letter-spacing: 1px;
}
.description {
  font-size: 1.3rem;
  padding: 0 2.5rem;
  color: var(--primary-text-color);
  letter-spacing: 2px;
  line-height: 1.9;
}
/* Герой-секция */
.section-hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.section-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(/img/firstdisplay1.jpg);
  background-size: cover;
  background-position: center;
  filter: blur(2px);
  z-index: -1;
  opacity: 0.9;
}

.section-hero-text {
  background-color: #ffffff09;
  animation: fadeInUp 1.5s ease-in-out;
  backdrop-filter: blur(1px);
}
.section-hero-text::before,
.section-hero-text::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 10px;
  background: #ffd700;
}
.section-hero-text::before {
  top: -10px;
  height: 10px;
  clip-path: polygon(0% 5%, 1% 0%, 50% 0%, 100% 100%);
}
.section-hero-text::after {
  bottom: -20px;
  height: 10px;
  clip-path: polygon(0% 5%, 1% 0%, 50% 0%, 100% 100%);
}
.section-hero-title {
  font-size: 6rem;
  margin-bottom: 20px;

  color: var(--white);
  font-weight: bold;
  text-shadow: 0 0 80px rgba(0, 0, 0, 0.9), 0 0 80px rgba(0, 0, 0, 0.7),
    0 0 100px rgba(0, 0, 0, 0.8);
  letter-spacing: 3px;
}

.section-hero-description {
  font-size: 2.5rem;
  margin-bottom: 30px;
  font-weight: 900;
  font-style: italic;

  color: var(--white);
  text-shadow: 0 0 60px rgba(0, 0, 0, 0.9), 0 0 10px rgba(0, 0, 0, 0.7);
  letter-spacing: 2px;
}
.section-hero-button-container {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  bottom: 4%;
  left: 48%;
  filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.4))
    drop-shadow(-2px -2px 5px rgba(255, 255, 255, 0.2));
  animation: fadeInUp 1.5s ease-in-out;
}

.section-hero-button-container-text {
  font-size: 1.5rem;
  font-weight: 700;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.9), 0 0 10px rgba(0, 0, 0, 0.7);
}
.section-hero-button {
  color: var(--white);
  font-size: 2.5rem;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: transform 0.3s ease;
  clip-path: polygon(100% 0%, 100% 38%, 82% 100%, 8% 100%, 0% 58%);
  cursor: pointer;
}

.section-hero-button:hover {
  transform: scale(1.4);
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.section-hero-button:active {
  transform: scale(1.4);
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Секция истории про инвестиции */
.section-history {
  padding: 50px 0;
}

/* Секция преимуществ */
.section-features {
  margin: 40px 0;
  padding: 0 2.5rem;
  background-color: RGB(39, 48, 56);
}
.section-features-description {
  margin-bottom: 2%;
}

.section-features-cards-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  gap: 55px;
  text-align: center;
  margin: 0 auto;
  flex-wrap: wrap;
}

.section-features-card {
  background: linear-gradient(
    135deg,
    rgba(153, 245, 179, 0.521) 0%,
    rgba(1, 124, 34, 0.781) 10%,
    rgba(48, 148, 1, 0.548) 60%,
    rgba(145, 250, 145, 0.24) 100%
  );
  padding: 20px;
  padding-top: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.section-features-card:hover {
  transform: translateY(-25px);
}

.section-features-card-title {
  font-size: 2.5rem;
  margin-bottom: 10px;

  font-weight: 900;
  color: var(--white-transparent);
}

.section-features-card-description {
  font-size: 1.2rem;
  letter-spacing: 1px;
  line-height: 1;

  margin-bottom: 20px;
  font-weight: 500;
  margin-bottom: 40px;
  color: var(--white-transparent);
}

/* Слайдер как начать с нами работать */
.section-how-start {
  margin: 50px 0;
  padding: 0 2.5rem;
}

.section-how-start-description {
  margin-bottom: 55px;
  text-align: center;
}
.slider {
  position: relative;
  width: 98%;
  margin: 0 auto;
  overflow: hidden;
  object-fit: cover;
}

.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slide {
  flex: 0 0 100%;
  height: 500px;
  position: relative;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 25px;
  opacity: 0.25;
}

.prev,
.next {
  position: absolute;
  top: 30%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-size: 18px;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

.dots {
  text-align: center;
  padding: 10px 0;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  cursor: pointer;
}

.dot.active {
  background-color: #717171;
}
.slide-text {
  display: none;
}
.slide.active .slide-text {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
}
.slide-how-start-tittle {
  font-size: 3.5rem;
  text-align: center;
  margin-bottom: 40px;
  color: var(--white);
  letter-spacing: 2px;
  font-weight: 900;
  z-index: 1;
}
.slide-how-start-description {
  font-size: 1.5rem;
  color: var(--white);
  letter-spacing: 2px;
  line-height: 1.9;

  margin-bottom: 55px;
  text-align: center;

  font-weight: 700;
  z-index: 1;
}

.how-start-partner {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  height: auto;
  margin-top: 50px;
}
.how-start-partner-logo {
  width: 22%;
  height: 160px;
  position: relative;
}

.how-start-partner-icon {
  width: 70%;
  height: 110%;
  position: absolute;
  left: 50%;
  top: 55%;
  transform: translate(-50%, -50%);
}
.description-partner {
  width: 60%;
  color: var(--primary-text-color);
  font-size: 1.5rem;
  letter-spacing: 2px;
  line-height: 2.5;

  margin-bottom: 55px;
  text-align: center;

  font-weight: 700;
}

/* Калькулятор */
.calculator {
  background-color: transparent;
  border-radius: 8px;
  padding: 32px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.calculator-input {
  margin-bottom: 24px;

  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 60%;
}
.calculator-input label {
  display: block;
  font-size: 2rem;
  font-weight: 500;
  color: var(--primary-text-color);
  margin-bottom: 8px;

  text-align: center;
}
.input-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
}

input[type="range"] {
  width: 90%;
  height: 0.65rem;
  -webkit-appearance: none;
  appearance: none;
  background: #e0e0e0; /* Цвет незакрашенной части трека */
  border-radius: 4px;
  cursor: pointer;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 48px;
  height: 50px;
  background: linear-gradient(45deg, #007400, #199119, #228b22);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  transform: translateY(-26%) translateX(-1.5px);
  margin-top: 0;
}

input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: linear-gradient(
    45deg,
    #007400,
    #199119,
    #228b22
  ); /* Согласуем с WebKit */
  border-radius: 50%;
  cursor: pointer;
  border: none; /* Для Firefox убираем стандартную границу */
  transform: translateY(-26%) translateX(-1.5px);
  margin-top: 0;
}

/* Закрашивание трека перед ползунком для WebKit (Chrome, Safari) */
input[type="range"]::-webkit-slider-runnable-track {
  height: 1.5rem;
  border-radius: 4px;
  background: color(srgb red green blue);
}

/* Закрашивание трека перед ползунком для Firefox */
input[type="range"]::-moz-range-progress {
  height: 1.5rem;
  border-radius: 4px;
  background: linear-gradient(
    45deg,
    #007400,
    #199119,
    #228b22
  ); /* Градиент для закрашенной части */
}

/* Стили для незакрашенной части трека в Firefox */
input[type="range"]::-moz-range-track {
  height: 1.5rem;
  border-radius: 4px;
  background: #e0e0e0; /* Цвет незакрашенной части */
}

input[type="number"] {
  width: 150px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  text-align: center;
  font-size: 1.35rem;
}
.currency-select {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.5rem;
  font-weight: 500;
}
.valute-change {
  font-weight: 700;
  color: var(--primary-text-color);
}
.calculator-button {
  width: 30%;
  padding: 1.9rem 0;
  background: linear-gradient(45deg, #007400, #199119, #228b22);
  color: #c5c5c5;
  font-weight: 900;
  font-size: 1.5rem;
  border: none;
  outline: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;

  display: none;
}

.calculator-button:hover {
  transform: scale(1.05);
  background: linear-gradient(45deg, #1a7e01de, #1a7e01de, #1a7e01de);
}

.results {
  margin-top: 24px;
  width: 90%;
  display: flex;
  flex-direction: column;
  gap: 19px
}

.result-group {
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
}

.calculator-result-title {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--primary-text-color);
}

.calculator-result-price {
  background: linear-gradient(
    to bottom,
    rgba(200, 255, 200, 0.75) 0%,
    rgba(30, 180, 60, 0.65) 30%,
    rgba(10, 140, 20, 0.5) 70%,
    rgba(160, 250, 160, 0.55) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 2.2rem;
  margin: 4px 0;
  font-weight: 800;
  letter-spacing: 3px;
  font-family: 'Noto Sans';
}
.footer-calculator-partner {
  width: 100%;
}
.footer-calculator-description {
  text-align: center;

  font-size: 1.5rem;
  margin-top: 10px;
  font-weight: 600;
  letter-spacing: 4px;
  line-height: 1.5;
  color: var(--primary-text-color);
  margin-bottom: 40px;

  padding: 0 120px;
}
.mobile-only {
  display: none;
}

/* Слайдер отзывов */
.testimonials {
  background: linear-gradient(rgba(78, 78, 78, 0.4), rgba(71, 69, 69, 0.9)),
    url(img/firstdisplay4.jpg);
  color: white;
  padding: 50px 20px;
  text-align: center;
  background-size: cover;
  background-position: center;
  min-height: 370px;
}

.testimonials-title {
  font-size: 3rem;
  margin-bottom: 40px;
  color: var(--white);
}

.testimonial-slider {
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonial {
  display: none;
  animation: slideIn 0.5s ease-in-out;
}

.testimonial.active {
  display: block;
}

.testimonial-comment {
  font-size: 1.6rem;
  margin-bottom: 10px;
  color: var(--white);

  font-weight: 700;
}

.testimonial-name {
  font-size: 1.3rem;
  font-style: italic;
  color: var(--white);

  font-weight: 800;
}
/* Секция команды */
.team-section {
  padding: 30px 10px;
  padding-bottom: 0px;
  text-align: center;
  min-height: 100vh; /* Гарантирует видимость */
  color: #1a2a44;
  font-family: "Merriweather", serif;
}

.team-container {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}
.team-section .roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 50px;

  margin: 0 auto;
}

.team-section .role-card {
  background: linear-gradient(
    135deg,
    rgba(153, 245, 179, 0.521) 0%,
    rgba(1, 124, 34, 0.781) 10%,
    rgba(48, 148, 1, 0.548) 60%,
    rgba(145, 250, 145, 0.24) 100%
  );
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-section .role-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.role-icon-img {
  width: 180px;
  height: 180px;
  margin-bottom: 10px;
}
.team-section .role-card h3 {
  font-size: 1.5rem;
  color: var(--white-transparent);
  margin-bottom: 10px;
  font-family: "Merriweather", serif;
  font-weight: 900;
}

.team-section .role-card p {
  font-size: 1rem;
  color: var(--white-transparent);
  font-family: "Merriweather", serif;
  line-height: 1.5;
}

/* Footer */
footer {
  color: var(--primary-text-color);
  text-align: center;
  padding: 40px 20px;
}
.footer-text {
  font-size: 2.8rem;

  font-family: "Merriweather", serif;
  width: 100%;
}

/* Анимации */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Адаптивность */

@media (max-width: 1024px) {
  .section-hero-button-container {
    left: 47%;
  }
  
}
@media (max-width: 1130px) {
  .mobile-only {
    display: block;
  }
  
}
@media (max-width: 768px) {
  .title {
    font-size: 2.2rem;
    margin-bottom: 20px;
    text-wrap: wrap;
  }
  .description {
    font-size: 1rem;
    width: 100%;
    padding: 0 10px;
  }
  /* Главный экран */
  .section-hero {
    max-height: 95vh;
  }
  .section-hero-title {
    font-size: 3rem;
    margin-bottom: 0;
  }

  .section-hero-description {
    font-size: 1.6rem;
  }
  .section-hero-button-container {
    left: 45%;
  }
  .section-hero-button {
    /* display: none; */
    
  }
  .section-hero-button:hover {
    transform: none;
  }
  .section-hero-button:active {
    transform: scale(1.3);
  }
  .section-hero-button-container-text {
    /* display: none; */
    
  }
  /* История */
  .section-history {
    padding: 5px;
  }
  .history-title {
    font-size: 2.5rem;
  }
  

  .section-features {
    margin-top: 25px;
  }
  .section-features-title {
    font-size: 2.3rem;
    text-align: center;
  }
  .section-features-description {
    margin-bottom: 30px;
  }
  .section-features-cards-container {
    gap: 27px;
  }

  .testimonials-title {
    font-size: 3rem;
  }
  .testimonial-comment {
    font-size: 1.5rem;
  }
  .testimonial-name {
    font-size: 1.8rem;
  }

  .section-how-start {
    padding: 50px 0;
  }
  .section-how-start-title {
    font-size: 2rem;
  }

  .prev,
  .next {
    top: 24%;
    opacity: 0.7;
    font-size: 25px;
  }
  .section-features {
    padding: 0 7px;
  }
  .section-features-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 97%;
  }
 
  .section-features-card-description {
    font-size: 1rem;
  }

  .section-how-start {
    margin-top: 0;
    padding-top: 0;
  }
  .slide-how-start-tittle {
    font-size: 1.5rem;
  }
  .slide-how-start-description {
    font-size: 0.9rem;
  }
  .calculator-section-title {
    font-size: 2.5rem;
  }
  .section-calculator {
    font-size: 1.2rem;
  }
  .how-start-partner {
    flex-direction: column;
    align-items: center;
    text-align: center;

    width: 100%;
  }
  .description-partner {
    font-size: 1.2rem;
    width: 100%;
  }
  .footer-calculator-description {
    font-size: 1rem;

    letter-spacing: 1px;
    width: 100%;
  }
  .how-start-partner-logo {
    margin-bottom: 1px;
    width: 80%;
  }
  .input-group {
    width: 100%;
  }
  .calculator-title {
    font-size: 2rem;
  }
  .calculator-input {
    width: 80%;
  }
  .calculator-input label {
    font-size: 1.2rem;
    text-align: center;
  }
  .input-wrapper {
    gap: 10px;
  }
  .input-wrapper input {
    font-size: 1.2rem;
  }
  .calculator-button {
    font-size: 1.2rem;

    width: 85%;
    display: block;
    margin-top: 20px;
    display: none;
  }
  .results {
    width: 80%;
  }
  .calculator-result-title {
    font-size: 1.2rem;
  }
  .calculator-result-price {
    font-size: 1.2rem;
  }
  .calculator-reult-description {
    font-size: 1.2rem;
  }
  .section-calculator {
    font-size: 1.2rem;
  }
  .footer-calculator {
    font-size: 1.2rem;
    width: 100%;
    padding: 10px;
  }
  .mobile-only {
    display: block;
  }
  .desktop-only {
    display: none;
  }
  .team-section .team-title {
    font-size: 2rem;
  }

  .team-section .team-intro {
    font-size: 1rem;
  }

  .team-section .roles-grid {
    grid-template-columns: 1fr;
  }

  .team-section .role-card h3 {
    font-size: 1.3rem;
  }

  .team-section .role-card p {
    font-size: 0.9rem;
  }
  .footer-text {
    font-size: 1.5rem;
  }
}
@media (max-width: 320px) {
  .section-hero-button-container {
    left: 38%;
  }
  .section-hero-button {
    font-size: 2.5rem;
  }
  .section-features-title {
    font-size: 2rem;
  }
  .section-features-card-title {
    font-size: 1.2rem;
  }
  .section-features-card-description {
    font-size: 0.9rem;
  }
  .testimonials h2 {
    font-size: 1.5rem;
  }
  .testimonial p {
    font-size: 0.8rem;
  }
  .testimonial h4 {
    font-size: 0.6rem;
  }

  .section-history-description {
    font-size: 1rem;
  }
  .section-how-start-title {
    font-size: 1.5rem;
  }
  .section-how-start-description {
    font-size: 1rem;
  }
}
