:root {
  --primary-color: navy;
  --bg-color: #f4f7f6;
  --text-color: #333;
  --card-bg: #fff;
  --light-blue: #4362debd;
}

body {
  text-align: center;
  justify-content: center;
  background-color: var(--bg-color);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
/*чтобы плавно пролистывались секции сайта*/
html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

body {
  margin: 0;
}

.content section {
  min-height: calc(100vh - 9.625rem);
  display: block;
}

.headline {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
  text-align: left;
}

/*for all sections the same /\*/

.move-down {
  height: 1.5rem;
  width: 1.5rem;
  color: var(--primary-color);
}

.move-right {
  height: 1.5rem;
  width: 1.5rem;
  color: white;
}
/*кнопка попробовать для раздела NVA*/
.try {
  font-size: 1.25rem;
  color: white;
  padding: 1rem;
  border: none;
  cursor: pointer;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-color);
  font-weight: bold;
}

.try:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/*for all links in buttons*/
a button {
  text-decoration: none;
}

/*надпись на самом первом слайде главной странице*/
.continue {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-top: 5rem;
  align-items: center;
  display: inline-flex;
  text-align: center;
  justify-content: center;
  gap: 0.5rem;
}
/*заголовок и подзаголовок первого слайда главной страницы*/
.second-line {
  margin-left: 5%;
  line-height: 1.5;
  margin-top: 10%;
}

.second-line h1,
h2 {
  text-align: left;
}

.second-line .continue {
  text-align: left;
}

#home h2 {
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2rem;
  width: 60%;
}

.questionaire {
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.98);
  padding: 1rem;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: black;
  font-size: 1.25rem;
  max-width: fit-content;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-top: 4rem;
}

.questionaire a {
  color: var(--light-blue);
}

.message {
  margin: 2rem;
  font-size: 1.25rem;
}

#nva,
#calculator h1 {
  margin-left: 5%;
}

/*nva cards ont the main page*/
.nva-card {
  background-color: #fff;
  border-radius: 0.5rem;
  padding: 1rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin: 1rem;
  max-width: 20rem;
  text-align: center;
  color: var(--primary-color);
  font-size: 1.25rem;
  font-weight: 300;
  cursor: pointer;
}

.nva-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  margin-left: auto;
  margin-right: auto;
}

.nva-line {
  margin: 0;
  min-height: 7rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-line{
  margin: 0;
  display: flex;
  gap: 1rem;
}

.nva-card {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nva-card img {
  width: 20rem;
  height: auto;
  margin: 0;
  border-radius: 0.5rem;
  display: block;
}

/*Phone*/
@media (max-width: 48rem) {
  body {
    zoom: 0.85; /* Простой и надёжный способ */
  }
}
