/**********************
******* reset *********
**********************/

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

/**********************
******** main *********
**********************/

body{
  font-family: 'Inter', sans-serif;
}

.container{
  max-width: 900px;
  margin: 0 auto;
}

h2{
  font-size: 42px;
  color: #000;
  font-weight: 800;
  line-height: 1;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid #000;
  color: #000;
  font-size: 9px;
  font-weight: bold;
  margin-left: 6px;
  vertical-align: super;
}

.btn{
  padding: 13px 25px;
  border: 1px solid #404040;
  border-radius: 10px;
  color: #404040;
  font-weight: bold;
  font-size: 20px;
  display: inline-block;
  transition: transform 0.2s ease;
}

.btn:hover {
  transform: scale(1.05);
}

.btn-yellow{
  background-color: #FFD700;
  margin-right: 20px;
}

.btn-white{
  background-color: #fff;
}

@media (max-width: 768px) {

  h2{
    padding: 0 15px;
  }

}

/**********************
******* header ********
**********************/

header{
  height: 74px;
  background-color: #FFFAF5;
  box-shadow: 0px 1px 0px 0px #80808033;
  position: sticky;
  top: 0;
  z-index: 100;
}

header .container{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 25px;
}

header a{
  font-weight: bold;
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
}

img.logo {
  mix-blend-mode: multiply;
  height: 26px;
  width: auto;
}

/**********************
******* block1 ********
**********************/

.block1 {
  margin: 25px 0 100px 0;
  background-image: url(../img/block1-bg.jpg);
  background-repeat: no-repeat; 
  background-size: cover; 
  background-position: center; 
  color: #fff;
  border-radius: 15px;
  padding: 60px 70px 40px;
}

.block1 h1{
  font-family: 'Montserrat', sans-serif;
  font-size: 56px;
  max-width: 500px;
  line-height: 48px;
  font-weight: 800;
}

.block1 p{
  margin-top: 40px;
  font-weight: 600;
  font-size: 26px;
  margin-bottom: 40px;
  line-height: 1;
}

.block1 .mblock{
  border-radius: 15px;
  display: none;
}

.block1 .badge {
  color: #fff;
  border: 1px solid #fff;
}

@media (max-width: 768px) {
  .block1 {
    background-image: none;
    color: #000;
    padding: 15px;
    margin-bottom: 60px;
  }
  .block1 h1{
    font-size: 50px;
  }
  .block1 .mblock{
    display: block;
    margin-bottom: 20px;
  }
  .block1 .badge{
    color: #000;
    border: 1px solid #000;
  }
}

/**********************
******* block2 ********
**********************/

.calc-section {
  margin: 40px 0;
}

.calc-card {
  background-color: #FFD700;
  padding: 30px;
  border-radius: 20px;
  color: #000;
}

.calc-title {
  font-size: 42px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;
  padding-bottom: 40px;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr; 
  gap: 20px;
  margin-bottom: 32px;
}

.calc-field {
  background-color: #fff;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  height: 72px;
  box-sizing: border-box;
}

.custom-select-wrapper {
  position: relative;
  width: 100%;
}

.select-toggle {
  display: none;
}

.calc-field--select {
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
  user-select: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.select-arrow {
  width: 8px;
  height: 8px;
  border-right: 2px solid #000;
  border-bottom: 2px solid #000;
  transform: rotate(45deg); 
  margin-top: -4px; 
  margin-right: 4px;
  transition: transform 0.2s ease;
}

.select-toggle:checked + .calc-field--select .select-arrow {
  transform: rotate(225deg); 
  margin-top: 2px;
}

.select-options {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  padding: 8px 0;
  margin: 0;
  list-style: none;
  z-index: 10;
  display: none;
}

.select-toggle:checked ~ .select-options {
  display: block;
}

.option-item {
  padding: 14px 20px;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.option-item:hover {
  background-color: #f5f5f5;
}

.option-item.selected {
  background-color: #fff8d6;
  font-weight: bold;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.range-title {
  font-size: 16px;
  color: #000;
  font-weight: 500;
}

.range-value {
  font-size: 20px;
  font-weight: bold;
}

.calc-field input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
  margin: 0;
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
}

.calc-field input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, #000 0%, #000 var(--fill-percent), rgba(0,0,0,0.08) var(--fill-percent), rgba(0,0,0,0.08) 100%);
}

.calc-field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 14px;
  width: 14px;
  border-radius: 50%;
  background: #000;
  cursor: pointer;
  margin-top: -6px;
}

.calc-result {
  background-color: #1a1a1a;
  color: #fff;
  border-radius: 14px;
  padding: 20px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 480px;
}

.result-label {
  font-size: 22px;
  font-weight: bold;
}

.result-sum {
  font-size: 24px;
  font-weight: 900;
}

.calc-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}

.calc-btn {
  padding: 24px;
  border: none;
  border-radius: 14px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
}

.calc-btn--active {
  background-color: #FFD700;
  color: #000;
}

.calc-btn--dark {
  background-color: #1a1a1a;
  color: #fff;
}

@media (max-width: 768px) {
  .block2 h2{text-align: center;}
  .calc-section {margin: 40px 15px;}
  .calc-card { padding: 24px; }
  .calc-title { font-size: 28px; }
  .calc-result { max-width: 100%; }
  .calc-buttons { grid-template-columns: 1fr; padding: 0 16px; }
}

/**********************
******* block3 ********
**********************/

.block3 h2{
  margin: 80px 0 50px 0;
}

.steps-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch; 
}

.steps-image {
  position: relative;
  height: 100%; 
  min-height: 0;
}

.steps-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-item {
  background-color: #f0f2f5;
  color: #000000;
  padding: 24px 32px;
  border-radius: 12px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
}

.step-item--yellow {
  background-color: #ffcc00;
  font-weight: bold;
}

.step-item .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid #000;
  color: #000;
  font-size: 9px;
  font-weight: bold;
  margin-left: 4px;
  vertical-align: super;
}

@media (max-width: 768px) {

  .block3 h2{
    margin: 20px 0;
    max-width: 60%;
  }
  
  .steps-container {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 16px;
  }

  .steps-image {
    position: static;
    height: 400px;
    order: 2;
  }

  .steps-image img {
    position: static;
    height: 100%;
  }

  block3 .steps-list {
    order: 1; 
  }

  .step-item {
    padding: 16px 20px;
    font-size: 20px;
  }
}

/**********************
******* block4 ********
**********************/

.block4 h2{
  margin: 80px 0 50px 0;
  max-width: 60%;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px; 
  max-width: 1000px; 
  margin: 40px auto; 
  font-family: var(--font-family-base);
}

.feature-card {
  background-color: #f0f2f5; 
  padding: 32px; 
  border-radius: 16px; 
  display: flex;
  flex-direction: column;
  gap: 12px;  
}

.feature-title {
  font-size: 24px;
  font-weight: bold;
  color: #000000;
  margin: 0;
  line-height: 1.2;
}

.feature-text {
  font-size: 16px;
  color: #333333;
  margin: 0;
  line-height: 1.4;
}


@media (max-width: 768px) {
  .block4 h2{
    margin: 40px 0 0 0;
    max-width: 80%;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 16px; 
  }

  .feature-card {
    padding: 24px; 
  }

  .feature-title {
    font-size: 20px; 
  }
}

/**********************
******* block5 ********
**********************/

.block5 h2{
  margin: 80px 0 50px 0;
}

.registration-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.top-row {
    display: flex;
    gap: 20px;
}

.block5 .card-item {
    flex: 1;
    background: #ffffff;
    border: 1.5px solid #000000;
    border-radius: 16px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    min-height: 340px;
}

/* Заголовки */
.block5 h3 {
    font-size: 28px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 25px;
}

/* Списки шагов */
.block5 .steps-list {
    list-style: none;
    counter-reset: steps-counter;
    margin-bottom: auto; /* Прижимает кнопку к низу карточки */
}

.block5 .steps-list li {
    counter-increment: steps-counter;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.3;
    display: flex;
    align-items: flex-start;
}

.block5 .steps-list li::before {
    content: counter(steps-counter) ". ";
    font-weight: 500;
    margin-right: 6px;
    white-space: nowrap;
}

.block5 .btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s ease;
    border: none;
}

.btn-yellow {
    background-color: #FFD700;
    color: #000000;
}

.btn-dark {
    background-color: #1a0f0f;
    color: #ffffff;
}

.bottom-banner {
    background-color: #FFD700;
    border-radius: 16px;
    padding: 30px;
}

.bottom-banner h3 {
    margin-bottom: 15px;
}

.bottom-banner p {
    font-size: 22px;
    line-height: 1.4;
    color: #000000;
    font-weight: 400;
    max-width: 850px;
}

@media (max-width: 768px) {
  .block5 h2{
    margin: 40px 0 30px 0;
  }

  .registration-container{
    padding: 0 15px;
  }

  .top-row {
      flex-direction: column;
  }
  
  .card-item {
      min-height: auto;
  }
  
  .steps-list {
      margin-bottom: 30px;
  }
}

/**********************
******* footer ********
**********************/

footer {
  background-color: #2b2b2b;
  padding: 60px 20px 40px 20px;
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 60px;
}

.footer-disclaimer {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-disclaimer p {
  font-size: 13px;
  line-height: 1.5;
  color: #858585; 
  font-weight: 400;
}

.footer-disclaimer sup {
  font-size: 10px;
  top: -0.4em;
  color: #858585;
}

.footer-bottom {
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #3d3d3d;
  padding-top: 20px;
  font-size: 14px;
  color: #858585;
}

@media (max-width: 480px) {
  .footer-bottom {
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
  }
}
