*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body,
div,
span,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
img,
ol,
ul,
li,
fieldset,
form,
label,
footer,
header,
nav,
section {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

footer,
header,
nav,
section {
  display: block;
}

ol,
ul,
li {
  list-style: none;
}

a {
  text-decoration: none
}

:root {
  --primary: #fdc10f;
  --primary__hover: #ffd65d;
  --secondary: #333;
  --light: #eee;
  --white: #fff;
  --black: #000;
  --font: "Inter", sans-serif;
}

body {
  overflow-x: hidden;
  font-family: var(--font);
  color: var(--black);
  line-height: 1;
  font-size: 16px;
}

.container {
  width: 100%;
  max-width: 1200px;
  height: 100%;
  padding: 0 15px;
  margin: 0 auto;
  position: relative;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 30px;
  border: 1px solid transparent;
  transition: all .3s ease;
  cursor: pointer;
  font-family: var(--font);
  background: var(--primary);
  color: var(--black);
  text-transform: uppercase;
  font-size: 20px;
  border-radius: 8px;
  font-weight: 300;
}

.btn:hover {
  background: var(--primary__hover);
}

/* body */
.header {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  background: var(--primary);
  padding: 10px 0;
  z-index: 22;
  box-shadow: 0 3px 10px 0 rgba(0, 0, 0, 0.2);
}

.header__wrap {
  display: grid;
  grid-template-columns: max-content 1fr;
}

.logo {
  padding: 0;
  margin: 0;
}

.logo img {
  height: 40px;
}

.header__nav {
  display: grid;
  grid-template-columns: 1fr max-content;
}

.menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.menu__link {
  color: var(--black);
  font-weight: 300;
}

.menu__link:hover {
  text-decoration: underline;
}

.header__cta {
  display: flex;
  align-items: center;
  gap: 40px;
}

.header__phone {
  color: var(--black);
  font-size: 14px;
  text-decoration: underline;
  font-weight: 600;
}

.header__btn {
  border-radius: 100px;
  padding: 10px 26px;
  font-size: 14px;
  font-weight: 600;
  background: var(--black);
  color: var(--white);
}

.header__btn:hover {
  background: var(--secondary);
}
.header__menu-btn{
  display: none;
}
@media(max-width:850px) {
  .header__wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .header__nav {
    display: none;
  }
  .header__nav.active{
    display: flex;
    flex-direction: column;
    gap: 50px;
    position: absolute;
    top: 52px;
    width: 100%;
    left: 0;
    padding: 40px 20px;
    background: var(--primary);
  }
  .menu,.header__cta{
    flex-direction: column;
  }
  .header__cta{
    gap: 30px;
  }
  .header__phone{
    font-size: 20px;
  }
  .header__btn{
    padding: 16px 40px;
    width: 100%;
  }
  .header__menu-btn {
    width: 40px;
    height: 40px;
    background: transparent;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    cursor: pointer;
    border: none;
    outline: none;
  }

  .header__menu-btn span {
    display: block;
    width: 30px;
    height: 2px;
    background: var(--black);
    position: relative;
  }

  .header__menu-btn span::before,
  .header__menu-btn span::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background: var(--black);
    position: absolute;
    right: 0;
  }

  .header__menu-btn span::before {
    top: -6px;
  }

  .header__menu-btn span::after {
    bottom: -6px;
  }

  .header__menu-btn.active span {
    background: transparent;
  }

  .header__menu-btn.active span::before {
    transform: rotate(-45deg);
    top: 0;
  }

  .header__menu-btn.active span::after {
    transform: rotate(45deg);
    bottom: 0;
  }
}

.hero {
  width: 100%;
  padding: 120px 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(51, 44, 44, 0.9) 100%), url(img/hero.webp);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-attachment: fixed;
}

.hero__wrap {
  color: var(--white);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__title {
  font-size: calc(14px + 2vw);
  line-height: 1.3;
  font-weight: 700;
  max-width: 1100px;
  margin: 0 auto 20px;
}

.hero__title b {
  color: var(--primary);
}

.hero__subtitle {
  font-size: 20px;
  font-weight: 600;
  max-width: 1100px;
  margin: 0 auto 30px;
  color: var(--primary);
}

.hero__description {
  line-height: 1.5;
  max-width: 600px;
  margin: 0 auto 30px;
}

.features {
  padding: 60px 0;
}

.features__wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.features__item {
  padding: 20px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  border-right: 2px solid var(--light);
}

.features__item:last-child {
  border-right: none;
}

.feature__item-icon {
  height: 80px;
}

.features__item-description {
  font-weight: 600;
  font-size: 20px;
  line-height: 1.5;
  text-align: center;
}

@media(max-width:900px) {
  .features__wrap {
    grid-template-columns: repeat(2, 1fr);
  }

  .features__item {
    border: none;
  }
}

@media(max-width:600px) {
  .features__wrap {
    grid-template-columns: repeat(1, 1fr);
  }
}

.service {
  padding: 80px 0;
  background: var(--light);
}

.service__title {
  font-size: calc(16px + 2vw);
  font-weight: 600;
  text-align: center;
  margin-bottom: 40px;
}

.service__warning {
  display: grid;
  grid-template-columns: max-content 1fr;
  align-items: center;
  gap: 100px;
  background: var(--primary);
  border-radius: 8px;
  padding: 30px 50px;
  margin-bottom: 60px;
}

.service__warning-title {
  font-size: 30px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 10px;
}

.service__warning-description {
  line-height: 1.5;
  margin-bottom: 30px;
  max-width: 400px;
  font-weight: 300;
}

.service__warning-description strong,
.service__warning-description b {
  font-weight: 800;
}

.service__warning-link {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 10px;
  color: var(--white);
  font-weight: 500;
  font-size: 30px;
  text-decoration: underline;
}

.service__warning-link img {
  height: 30px;
}

.service__warning-link:hover {
  color: var(--black);
}

.service__warning-btn {
  background: var(--black);
  color: var(--white);
}

.service__warning-btn:hover {
  background: var(--secondary);
  color: var(--white);
}

.service__wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service__item {
  padding: 10px 10px 14px 10px;
  border-radius: 8px;
  background: var(--white);
  display: flex;
  flex-direction: column;
}

.service__item-img {
  width: 100%;
  height: 120px;
  border-radius: 8px;
  margin-bottom: 14px;
  object-fit: cover;
}

.service__item-title {
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  padding: 0 10px;
  margin-bottom: 20px;
}

.service__item-description {
  line-height: 1.5;
  font-weight: 300;
  text-align: center;
  margin-bottom: 40px;
}

.service__item-btn {
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 400;
  margin: auto auto 0 auto;
}

@media(max-width:1100px) {
  .service__wrap {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media(max-width:900px) {
  .service__warning {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .service__wrap {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width:600px) {
  .service__wrap {
    grid-template-columns: repeat(1, 1fr);
  }
}

.price {
  padding: 60px 0;
}

.price__title {
  font-size: calc(16px + 2vw);
  font-weight: 600;
  text-align: center;
  margin-bottom: 40px;
}

.price__table {
  width: 100%;
}

.price__table table {
  width: 100%;
  margin-bottom: 30px;
  border-collapse: collapse;
}

.price__table thead {
  background: var(--primary);
}

.price__table tr:nth-child(even) {
  background: var(--light);
}

.price__table th {
  padding: 20px;
  text-align: left;
  font-size: 20px;
}

.price__table td {
  padding: 20px;
  font-size: 20px;
  font-weight: 500;
}

.price__table-btn {
  width: 100%;
  background: var(--black);
  color: var(--white);
}

.price__table-btn:hover {
  color: var(--black);
}

@media(max-width:900px) {
  .price__table {
    width: 100%;
    overflow-x: scroll;
  }

  .price__table th {
    font-size: 16px;
  }

  .price__table td {
    font-size: 14px;
    padding: 10px;
    line-height: 1.5;
  }
}

.work {
  padding: 80px 0;
}

.work__title {
  font-size: calc(16px + 1vw);
  font-weight: 600;
  text-align: center;
  margin-bottom: 40px;
}

.work__wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.work__item {
  padding: 40px 30px 20px;
  background: #f7f7f7;
  border: 1px solid #e0e6ed;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.work__item-title {
  text-align: center;
  font-size: 22px;
  font-weight: 500;
}

.work__item-count {
  text-align: center;
  font-size: 40px;
  font-weight: 600;
}

.work__item-list {
  font-weight: 300;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.work__item-list li {
  position: relative;
  padding-left: 20px;
  line-height: 1.5;
}

.work__item-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
}

.work__item-offer {
  text-align: center;
  line-height: 1.5;
  font-weight: 600;
}

.work__item-btn {
  font-size: 14px;
  padding: 20px 20px;
  font-weight: 500;
  margin-top: auto;
}

@media(max-width:900px) {
  .work__wrap {
    grid-template-columns: 1fr;
  }
}

.tool {
  padding: 60px 0;
}

.tool__title {
  font-size: calc(16px + 2vw);
  font-weight: 500;
  text-align: center;
  margin-bottom: 50px;
}

.tool__wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 50px;
}

.tool__wrap-content {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.tool__wrap-img {
  width: 100%;
  object-fit: cover;
}

.tool__wrap-item {
  display: flex;
  gap: 30px;
}

.tool__wrap-item img {
  height: 80px;
}

.tool__wrap-description {
  line-height: 1.25;
  font-size: 20px;
}

@media(max-width:900px) {
  .tool__wrap {
    grid-template-columns: 1fr;
  }

  .tool__wrap-img {
    order: -1;
  }
}

.why {
  padding: 100px 0;
  background: var(--primary);
}

.why__title {
  font-size: calc(16px + 2vw);
  font-weight: 500;
  text-align: center;
  margin-bottom: 20px;
}

.why__subtitle {
  line-height: 1.5;
  font-size: 26px;
  text-align: center;
  margin-bottom: 50px;
  font-weight: 300;
}

.why__wrap {
  display: flex;
  flex-direction: column;
  gap: 30px;
  text-align: center;
}

.why__top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 30px 0 45px;
}

.why__bottom {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 30px 0 45px;
  margin-bottom: 40px;
}

.why__item {
  display: flex;
  flex-direction: column;
  gap: 35px;
  padding: 0 30px;
  border-right: 2px solid var(--primary__hover);
}

.why__item:last-of-type {
  border-right: none;
}

.why__item-icon {
  height: 75px;
}

.why__item-title {
  font-size: 20px;
  line-height: 1.5;
  font-weight: 500;
}

.why__btn {
  width: 100%;
  background: var(--black);
  color: var(--white);
  padding: 40px 20px;
}

.why__btn:hover {
  color: var(--white);
  background: var(--secondary);
}

@media(max-width:700px) {
  .why__wrap {
    gap: 0;
  }

  .why__top,
  .why__bottom {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 20px;
  }
}

.seo__block {
  padding: 80px 0;
}

.seo__title {
  font-size: calc(16px + 1vw);
  line-height: 1.1;
  font-weight: 600;
  margin-bottom: 20px;
}

.seo__subtitle {
  font-size: 18px;
  line-height: 1.5;
  color: var(--secondary);
  margin-bottom: 30px;
}

.seo__description {
  margin-top: 20px;
  font-weight: 300;
  line-height: 1.5;
}

.contacts {
  padding: 80px 0;
  background: var(--light);
}

.contacts__wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}

.contacts__title {
  font-weight: 600;
  font-size: calc(16px + 2vw);
  margin-bottom: 20px;
}

.contacts__list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 20px;
}

.contacts__list-item {
  display: flex;
  align-items: center;
  gap: 20px;
  line-height: 1.5;
  font-size: 18px;
}

.contacts__list-item img {
  width: 50px;
  object-fit: contain;
}

.contacts__list-item a {
  font-size: 24px;
  color: var(--black);
  font-weight: 500;
  text-decoration: underline;
}

.contacts__policy {
  font-size: 14px;
  line-height: 1.25;
  max-width: 500px;
  color: var(--secondary);
}

.contacts__form {
  padding: 30px;
  border-radius: 10px;
  background: var(--white);
}

.contacts__form-title {
  text-align: center;
  margin-bottom: 20px;
  font-size: 30px;
  font-weight: 500;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form__label {
  font-size: 20px;
  font-weight: 500;
}

.form__select {
  color: var(--black);
  border: 2px solid #cccccc;
  border-radius: 5px;
  font-size: 16px;
  height: 60px;
  line-height: 1.33;
  margin: 0;
  outline: none;
  padding: 0 20px;
  width: 100%;
  font-family: var(--font);
  cursor: pointer;
}

.form__input {
  color: var(--black);
  border: 2px solid #cccccc;
  border-radius: 5px;
  font-size: 16px;
  height: 60px;
  line-height: 1.33;
  margin: 0;
  outline: none;
  padding: 0 20px;
  width: 100%;
  font-family: var(--font);
}

.form__btn {
  font-size: 16px;
  font-weight: 600;
}
.form__checkbox-label,
.form__checkbox-label input{
  cursor: pointer;
}
.form__policy {
  color: var(--secondary);
}

.footer {
  padding: 50px 0;
  background: var(--black);
  color: var(--white);
}

.footer__wrap {
  display: grid;
  grid-template-columns: 1fr max-content;
  gap: 50px;
}

.footer__logo {
  height: 100px;
  margin-bottom: 20px;
}

.footer__info h3 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 10px;
}

.footer__info p {
  line-height: 1.5;
  font-size: 14px;
  font-weight: 300;
  margin-top: 10px;
}

.footer__services h4 {
  font-size: 26px;
  font-weight: 500;
  margin-bottom: 20px;
}

.footer__services ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__services ul li a {
  color: var(--primary);
  text-decoration: underline;
  font-size: 14px;
}

@media(max-width:900px) {

  .contacts__wrap,
  .footer__wrap {
    grid-template-columns: 1fr;
  }

  .contacts__form {
    order: -1;
  }
}

/* popup */
/* Стили модального окна */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active {
  display: block;
  opacity: 1;
  visibility: visible;
}

.modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.modal__content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--white);
  border-radius: 12px;
  padding: 40px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: color 0.3s ease;
}

.modal__close:hover {
  color: var(--primary);
}

.modal__title {
  font-size: 28px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 10px;
  line-height: 1.2;
}

.modal__subtitle {
  font-size: 16px;
  color: var(--secondary);
  margin-bottom: 30px;
  line-height: 1.4;
}

.modal__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form__group {
  width: 100%;
}

.form__input {
  width: 100%;
  padding: 18px 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 16px;
  color: var(--black);
  background: var(--white);
  transition: all 0.3s ease;
}

.form__input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(253, 193, 15, 0.1);
}

.form__input::placeholder {
  color: #999;
}

.modal__btn {
  width: 100%;
  margin-top: 10px;
}

/* Анимация появления */
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -48%) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.modal.active .modal__content {
  animation: modalFadeIn 0.3s ease-out;
}

/* Предотвращение скролла при открытом модальном окне */
body.modal-open {
  overflow: hidden;
}