:root {
  --background-color: #EFF1F4;
  --dark-gray: #828282;
  --light-gray: #F6F6F6;
  --white: #fff;
  --black: #222;
  --red: #DA2720;
  --pink: #FEF3F2;
}
html {
  scroll-behavior: smooth;
}
body {
  background-color: var(--background-color);
  font-family: 'Fira Sans', Arial, sans-serif;
  color: var(--black);
  font-weight: 400;
  font-size: 18px !important;
}
.no-scroll {
  overflow: hidden;
}

.custom-h1, .custom-h2 {
  font-size: 40px;
  font-weight: 700;
}
.custom-h3 {
  font-size: 20px;
  font-weight: 600;
}
.custom-section {
  margin-top: 40px;
}
.custom-container {
  max-width: 1200px;
  margin: 0 auto;
}

.tel {
  text-decoration: underline;
}

/* FIRST SCREEN */
.custom-breadcrumb-list {
  display: flex;
	flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.hero-content {
  background-image: url('../img/big-banner.webp');
  background-color: var(--black);
  color: var(--black);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  width: 100%;
  padding: 60px 40px;
  border-radius: 20px;
  margin: 40px 0;
}
.hero-content h1 {
    color: var(--black);
    margin-top: 20px;
}
.breadcrumbs {
  display: flex;
  gap: 10px;
}


/* COMPONENT: BLOCK-CONTENT */
.block-content {
  padding: 40px;
  background-color: var(--white);
  border-radius: 20px;
  margin: 40px 0;

  display: flex;
  flex-direction: column;
  gap: 20px;
}

.list-problems {
  display: flex;
  gap: 160px;
}

.custom-btn {
  background-color: var(--red);
  display: inline-block;
  border-radius: 12px;
  color: var(--white);
  padding: 12px 25px;
  width: fit-content;
  transition: 
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.custom-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  background-color: #c91c1c; /* чуть темнее */
  color: var(--white);
}



/* COMPONENT: FAQ */
.faq-row {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}
.faq-item.active-state .arrow {
  transform: rotate(180deg);
}
.arrow {
  flex-shrink: 0;
  align-self: flex-start;
  display: inline-block;
  width: 24px;
  height: 24px;
  position: relative;
  transition: transform 0.3s ease;
}
.faq-item {
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 2px 8px 0 rgba(30, 41, 59, 0.07);
  overflow: hidden;
  transition: box-shadow 0.2s;
  width: 100%;
}
.faq-question {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 20px;
  color: var(--black);
  font-weight: 600;
  font-size: 18px;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}
button, .faq-question {
  -webkit-tap-highlight-color: transparent;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  font-size: 16px;
  color: var(--black);
  background: var(--white);
  transition: max-height 1s, padding 0.3s;
  line-height: 1.7;

  display: flex;
  flex-direction: column;
  gap: 15px;
}
.faq-answer a {
  color: var(--red);
}
/* .faq-answer-div {
  margin-top: 20px;
} */
.faq-item.active-state .faq-answer {
  padding: 0 20px 20px 20px;
  max-height: max-content;
}

/* модалка */
.modal {
  border: none;
  border-radius: 20px;
  padding: 0;
  max-width: 520px;
  margin: 20px auto;  
}

/* фон */
.modal::backdrop {
  background: rgba(0,0,0,0.4);
}

/* контент */
.modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: sans-serif;
}

/* header */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

.close-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

/* labels */
label {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  gap: 6px;
}

label span {
  color: red;
}

/* inputs */
input,
select,
textarea {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 12px;
  font-size: 14px;
  outline: none;
}

textarea {
  min-height: 100px;
  resize: none;
}

/* focus */
input:focus,
select:focus,
textarea:focus {
  border-color: #e30613;
}

/* file */
.file-upload {
  gap: 6px;
}

.files-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 6px;

  border: 1px solid var(--red);
  border-radius: 20px;
  padding: 6px 10px;

  font-size: 12px;
}

.file-item button {
  background: none;
  border: none;
  color: var(--red);
  cursor: pointer;
  font-size: 14px;
}

.file-upload input {
  display: none;
}

.file-upload-box {
  display: flex;
  align-items: center;
  gap: 12px;

  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 10px 12px;

  cursor: pointer;
  transition: border-color 0.2s;
}

.file-upload-box:hover {
  border-color: #e30613;
}

.upload-btn {
  width: 36px;
  height: 36px;
  background: var(--red);
  border-radius: 50%;
  color: #fff;
  font-size: 22px;

  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;
}

#fileText {
  font-size: 14px;
  color: #666;
}

/* кнопка */
.submit-btn {
  margin-top: 10px;
  background: #e30613;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s;
}

.submit-btn:hover {
  background: #c91c1c;
}

/* текст снизу */
.policy {
  font-size: 12px;
  color: #666;
}

.policy a {
  color: #e30613;
  text-decoration: underline;
}

.modal:not([open]) {
  display: none;
}
.modal[open] {
  display: block;
}


/* MEDIA QUERIES */
@media (max-width: 1024px) {
  .custom-container {
    padding: 40px 20px;
  }
  .hero-content {
    padding: 107px 20px;
  }
  .hero-content h1 {
    font-size: 26px;
  }
  .hero-content p {
    max-width: 362px;
  }
  .custom-h2 {
    font-size: 32px;
  }
  .cards-row {
    gap: 20px;
  }
}
@media (max-width: 768px) {
  .hero-content {
    background-position: 70% 40%;
    padding: 107px 20px;
  }
  .list-problems {
    flex-direction: column;
    gap: 0;
  }
  .faq-question {
    font-size: 16px;
  }
  .desktop-display {
    display: none;
  }
  .mobile-display {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
  }
  .popup {
    max-width: 700px;
    width: 100%;
  }

}
@media (max-width: 450px) {
  .custom-container {
    padding: 0 15px;
  }
  .breadcrumbs {
    font-size: 16px;
  }
  .hero-content {
    padding: 40px 18px;
    background-position: 20% 40%;
  }
  .custom-btn {
    font-size: 16px;
  }
  .custom-h1, .custom-h2 {
    font-size: 20px;
  }
  .custom-h3 {
    font-size: 18px;
  }
  p, li {
    font-size: 16px;
  }
  .hero-content p {
    max-width: 239px;
    font-size: 16px;
  }
  .block-content {
    padding: 25px 15px;
  }
  .faq-row {
    flex-direction: column;
    gap: 20px !important;
  }
  .faq-answer-div b {
    font-size: 16px;
  }
  .faq-answer {
    gap: 15px;
  }
}
@media (max-width: 375px) {
  .custom-h2 {
    font-size: 22px;
  }
}
@media (max-width: 320px) {
  body {
    font-size: 16px;
  }
  .custom-breadcrumb {
    font-size: 14px;
    gap: 5px;
  }
  .custom-h1, .custom-h2 {
    font-size: 18px !important;
  }
  .custom-h3 {
    font-size: 18px;
  }
  .hero-content {
    padding: 80px 15px;
  }
  .hero-content p {
    font-size: 14px;
    margin: 10px 0;
    max-width: 206px;
  }

  .card-item span {
    font-size: 16px;
  }

  .card-item p {
    font-size: 14px;
  }

}