* {
  box-sizing: border-box;
}

@font-face {
    font-family: "Patefon";
    src: url("../fonts/Patefon.ttf");
}

body {
  margin: 0;
  font-family: "Patefon";
  color: var(--color-dark);
  background: var(--color-dark);
}

:root {
  --color-bg: #F5F3F0;
  --color-dark: #1A1A1A;
  --color-dark-gray: #333333;
  --color-gold: #C9A66B;
  --color-light-gray: #E9E9E9;
  --color-gray: #A1A1A1
}

  html {
    scroll-behavior: smooth;
  }



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

button,
a {
  font: inherit;
}

.container {
  width: min(1200px, calc(100% - 64px));
  margin: 0 auto;
}

.header {
  height: 64px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(26, 26, 26, 0.55);
  color: var(--color-bg);
  border-bottom: 1px solid rgba(51, 51, 51, 0.7);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
}

.logo {
  width: 32px;
  height: 32px;
  background: var(--color-bg);
  color: var(--color-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
}

.nav {
  display: flex;
  gap: 36px;
  margin-left: 64px;
}

.nav a {
  font-size: 14px;
  color: var(--color-bg);
}

.header__button {
  margin-left: auto;
  padding: 10px 20px;
  border: 1px solid #B71C1C;
  background: transparent;
  color: var(--color-bg);
  cursor: pointer;
}

.hero {
  min-height: 1000px;
  background: var(--color-dark);
  color: var(--color-bg);
  display: flex;
  align-items: center;
  
}

.hero__content {
  padding-top: 64px;
  margin-left: 10%;
  margin-bottom: -20%;
  background-color: #b71c1c00;
}

.hero h1 {
  margin: 0 0 3px;
  width: 100%;
  max-width: 1500px;
  font-size: clamp(38px, 4vw, 64px);
  line-height: 1;
  font-weight: 400;
}

.hero p {
  margin: 5px 0 26px;
  width: 66.666%;
  max-width: 760px;
  color: #757575;
  font-size: clamp(13px, 1.1vw, 16px);
  line-height: 1.4;
}

.buttons {
  display: flex;
  gap: 14px;
}

.button {
  min-width: 280px;
  padding: 14px 22px;
  text-align: center;
  
}

.button--light {
  background: var(--color-bg);
  color: var(--color-dark);
}

.button--outline {
  background: transparent;
  color: var(--color-bg);
  border: 1px solid var(--color-gold);
}

.section-light {
  background: var(--color-bg);
  color: var(--color-dark);
  border-radius: 28px 28px 0 0;
}

.advantages {
  min-height: 820px;
  padding: 70px 0 80px;
}

.advantages h2 {
  margin: 0 0 58px;
  max-width: 720px;
  font-size: clamp(30px, 2.6vw, 40px);
  line-height: 1.12;
  font-weight: 400;
  text-align: left;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.card {
  height: 156px;
  background: #E3E1DE;
  border-radius: 4px;
}

.card--empty {
  background: transparent;
  border: 1px solid #B8B5B1;
}

.card--dark {
  background: var(--color-dark);
}

.section-dark {
  background: var(--color-dark);
  color: var(--color-bg);
}

.estimate {
  min-height: 450px;
  padding: 60px 0;
  text-align: center;
}

.estimate h2 {
  margin: 0 0 14px;
  font-size: 32px;
  font-weight: 400;
}

.estimate p {
  margin: 0 auto 24px;
  color: #757575;
  font-size: 14px;
  line-height: 1.35;
}

.form-placeholder {
  width: min(600px, 100%);
  height: 300px;
  margin: 0 auto;
  background: var(--color-bg);
}


/* Карусель предварительной оценки */
.project-quiz {
  width: min(900px, 100%);
  height: 520px;
  margin: 28px auto 0;
  padding: 44px 50px 34px;
  background: var(--color-bg);
  color: var(--color-dark);
  text-align: left;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.quiz-slides {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
}

.quiz-slide {
  display: none;
  height: 100%;
}

.quiz-slide.active {
  display: block;
}

.quiz-slide h3 {
  margin: 0 0 30px;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 400;
}

.quiz-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.quiz-options label {
  min-height: 62px;
  padding: 14px 18px;
  background: #E9E7E4;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.quiz-options input[type="radio"] {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #B71C1C;
  flex: 0 0 auto;
}

.quiz-fields {
  display: grid;
  gap: 14px;
  max-width: 520px;
}

.quiz-fields input {
  width: 100%;
  height: 56px;
  padding: 0 16px;
  border: 1px solid #D0CDCA;
  background: #FFFFFF;
  color: var(--color-dark);
  font: inherit;
}

.quiz-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
}

.quiz-progress {
  color: #757575;
  font-size: 14px;
}

.quiz-progress b {
  font-weight: 400;
}

.quiz-controls {
  display: flex;
  gap: 10px;
}

.quiz-arrow,
.quiz-next {
  height: 50px;
  border: 1px solid #D9D6D2;
  cursor: pointer;
  font: inherit;
}

.quiz-arrow {
  width: 50px;
  border-radius: 50%;
  background: transparent;
  color: #757575;
  font-size: 20px;
}

.quiz-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.quiz-next {
  min-width: 132px;
  padding: 0 22px;
  border-color: #B71C1C;
  background: #B71C1C;
  color: var(--color-bg);
}

.quiz-next span {
  margin-left: 12px;
}

.faq {
  padding: 64px 0 54px;
}

.faq h2 {
  margin: 0 auto 36px;
  max-width: 900px;
  font-size: clamp(30px, 2.6vw, 40px);
  line-height: 1.15;
  font-weight: 400;
  text-align: center;
}

.faq__grid {
  width: 75vw;
  max-width: 1080px;
  margin: 0 auto 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: #E3E1DE;
  border-radius: 3px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  min-height: 52px;
  padding: 14px 20px;
  border: 0;
  background: transparent;
  color: var(--color-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
}

.faq-arrow {
  font-size: 18px;
  transition: transform 0.2s ease;
}

.faq-answer {
  display: none;
  padding: 0 20px 18px;
  color: #757575;
  font-size: 14px;
  line-height: 1.45;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
}

.faq__note {
  margin: 0;
  text-align: center;
  font-size: 13px;
}

.estimate--final {
  min-height: 460px;
  padding-top: 54px;
}

.form-placeholder--final {
  width: 520px;
  height: 310px;
}

.footer {
  height: 180px;
  background: #111111;
}

@media (max-width: 900px) {
  .nav {
    gap: 18px;
    margin-left: 30px;
  }

  .header__button {
    display: none;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    min-height: 700px;
  }

  .hero h1,
  .hero p {
    width: 75%;
  }
}

@media (max-width: 600px) {
  .container {
    width: calc(100% - 32px);
  }

  .header {
    height: 56px;
  }

  .nav {
    gap: 12px;
    margin-left: auto;
  }

  .nav a {
    font-size: 11px;
  }

  .logo {
    width: 28px;
    height: 28px;
  }

  .hero {
    min-height: 620px;
    align-items: center;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero p {
    font-size: 14px;
  }

  .buttons {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
  }

  .button {
    width: 100%;
  }

  .advantages {
    min-height: 700px;
    padding-top: 48px;
    padding-bottom: 56px;
  }

  .faq,
  .estimate {
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .advantages h2,
  .faq h2,
  .estimate h2 {
    font-size: 27px;
  }

  .cards {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .card {
    height: 100px;
  }

  .faq__grid {
    width: 100%;
  }

  .form-placeholder,
  .form-placeholder--final {
    width: 100%;
    height: 260px;
  }

  .faq__grid {
    gap: 6px;
  }
}


/* Опрос в блоке предварительной оценки */
.quiz {
  width: min(960px, 100%);
  height: 430px;
  margin: 0 auto;
  padding: 34px 38px 26px;
  background: var(--color-bg);
  color: var(--color-dark);
  text-align: left;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.quiz__viewport {
  flex: 1;
  overflow: hidden;
}

.quiz__track {
  height: 100%;
  display: flex;
  transition: transform 0.35s ease;
}

.quiz__slide {
  min-width: 100%;
  padding: 0 2px;
}

.quiz__slide h3 {
  margin: 0 0 28px;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 400;
}

.quiz__options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.quiz__options label {
  min-height: 62px;
  padding: 14px 16px;
  background: #E9E7E4;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.quiz__options input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #B71C1C;
}

.quiz__contacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.quiz__contacts input,
.quiz__contacts textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #D3D0CC;
  background: #FFFFFF;
  color: var(--color-dark);
  font: inherit;
}

.quiz__contacts textarea {
  grid-column: 1 / -1;
  min-height: 100px;
  resize: vertical;
}

.quiz__footer {
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quiz__counter {
  color: #757575;
  font-size: 14px;
}

.quiz__counter b {
  font-weight: 400;
}

.quiz__controls {
  display: flex;
  gap: 10px;
}

.quiz__prev,
.quiz__next {
  height: 48px;
  border-radius: 24px;
  cursor: pointer;
  font-weight: 600;
}

.quiz__prev {
  width: 48px;
  border: 1px solid #D8D5D1;
  background: transparent;
  color: #757575;
}

.quiz__prev:disabled {
  opacity: 0.35;
  cursor: default;
}

.quiz__next {
  min-width: 130px;
  padding: 0 22px;
  border: 0;
  background: #B71C1C;
  color: var(--color-bg);
}

.quiz__next span {
  margin-left: 12px;
}

@media (max-width: 700px) {
  .quiz {
    height: 520px;
    padding: 26px 20px 20px;
  }

  .quiz__slide h3 {
    font-size: 24px;
  }

  .quiz__options,
  .quiz__contacts {
    grid-template-columns: 1fr;
  }

  .quiz__contacts textarea {
    grid-column: auto;
  }
}


@media (max-width: 600px) {
  .project-quiz {
    height: 540px;
    padding: 30px 20px 24px;
  }

  .quiz-slide h3 {
    font-size: 24px;
    margin-bottom: 22px;
  }

  .quiz-options {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .quiz-options label {
    min-height: 52px;
    padding: 10px 12px;
    font-size: 14px;
  }

  .quiz-footer {
    padding-top: 18px;
  }

  .quiz-next {
    min-width: 112px;
    padding: 0 16px;
  }
}
