@import url("https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap");
@import url("colors.css");

* {
  padding: 0;
  margin: 0;
  border: 0;
}

*,
*::after,
*::before {
  box-sizing: border-box;
}

*::after,
*::before {
  display: inline-block;
}

body,
html {
  height: 100%;
  min-width: 320px;
}

body {
  color: var(--color-gray-text);
  line-height: 1;
  font-family: "Nunito Sans";
  font-size: 0.875rem;
  -ms-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--color-body-bg);
}

button,
input,
textarea {
  font-family: "Nunito Sans";
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  background-color: rgba(0, 0, 0, 0);
}

input,
textarea {
  width: 100%;
}

label {
  display: inline-block;
}

button,
option,
select {
  cursor: pointer;
}

a {
  display: inline-block;
  color: inherit;
  text-decoration: none;
}

ul li {
  list-style: none;
}

img {
  vertical-align: top;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: inherit;
  font-size: inherit;
}

header {
  background-color: var(--color-white);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
}

.heaader__content {
  display: flex;
  flex-direction: column;
}

.header__top {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.header__logo img {
  width: 100%;
  height: 100%;
  max-height: 60px;
}

.header__right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header__contact {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 16px;
  font-weight: 600;
}

.header__contact img {
  width: 16px;
  height: 16px;
}

.btn {
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 4px;
  min-width: 130px;
}

.btn img {
  width: 16px;
  height: 16px;
  transition: margin-left 0.3s ease;
}

.btn:hover img {
  margin-left: 12px;
}

.header__nav {
  background-color: var(--color-primary);
  padding: 10px 0;
  position: relative;
}

.header__list {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.header__link {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-white);
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.header__link:hover {
  color: var(--color-hover-blue);
}

.burger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 100;
}

.burger-line {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--color-white);
  margin: 5px 0;
  transition: all 0.3s ease;
}

footer {
  padding: 30px 0;
  border-top: 1px solid var(--color-gray);
}

.footer__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.footer__top {
  width: 100%;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 20px;
}

.footer__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__item h4 {
  color: var(--color-primary);
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
}

.footer__item p {
  color: var(--color-dark-text);
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
}

.footer__logo img {
  max-height: 60px;
}

.footer__disclaimer {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__link {
  padding: 8px 0;
  color: var(--color-dark-text);
  font-weight: 500;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer__link:hover {
  color: var(--color-primary);
}

.footer__contact {
  display: flex;
  gap: 8px;
  padding: 8px 0;
  font-weight: 700;
  color: var(--color-dark-text);
}

.footer__contact img {
  width: 16px;
  height: 16px;
}

.footer__bot {
  display: flex;
  gap: 16px;
}

.footer__bot a {
  color: var(--color-primary);
  font-weight: 500;
}

.hero {
  width: 100%;
}

.hero__top {
  display: grid;
  grid-template-columns: 70% 30%;
}

.hero__left {
  height: 525px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 40px 20px;
}

.hero__left::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.hero__img {
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 0;
}

.hero__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero__content h1 {
  font-size: 44px;
  color: var(--color-white);
  font-weight: 900;
  text-transform: uppercase;
}

.hero__content p {
  font-size: 14px;
  color: var(--color-white);
  font-weight: 500;
}

.hero__right {
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  padding: 0 12%;
}

.hero__right h2 {
  font-size: 23px;
  color: var(--color-dark-text);
  line-height: 30px;
  font-weight: 600;
}

.hero__right p {
  color: var(--color-dark-text);
  font-size: 14px;
  line-height: 20px;
}

.hero__right hr {
  height: 2px;
  width: 100%;
  background: var(--color-gray-text);
}

.hero__right .btn {
  justify-content: center;
}

.hero__bot {
  display: grid;
  grid-template-columns: 70% 30%;
}

.hero__bot__right {
  background-color: var(--color-hero-bot-right-bg);
  color: var(--color-primary);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero__bot__right h3 {
  font-size: 20px;
  font-weight: 600;
}

.hero__bot__right p {
  font-size: 16px;
  font-weight: 500;
}

.hero__bot__right .hero__link {
  color: var(--color-dark-text);
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 15px;
  font-weight: 500;
}

.hero__link img {
  width: 15px;
  height: 15px;
}

.hero__bot__left {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero__bot__left p {
  font-size: 20px;
  font-weight: 600;
}

.services {
  padding: 50px 0;
  background-color: var(--color-section-bg);
}

.services__content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.services__content h2 {
  font-size: 32px;
  color: var(--color-primary);
  font-weight: 600;
}

.services__items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.services__item {
  padding: 30px;
  background-color: var(--color-body-bg);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.services__item__head {
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.services__item__head h3 {
  font-weight: 700;
  font-size: 24px;
  color: var(--color-dark-text);
}

.services__item__icon {
  width: 56px;
  height: 56px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 3px solid var(--color-primary);
}

.services__item__head svg path {
  fill: var(--color-primary);
}

.services__item__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.services__item__list li {
  padding-bottom: 9px;
  border-bottom: 1px solid var(--color-dark-text);
  font-size: 14px;
  color: var(--color-dark-text);
  line-height: 20px;
}

.services__item__list li:last-child {
  border-bottom: none;
}

.service__btn {
  padding: 10px 15px;
  border-radius: 4px;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  border: 2px solid var(--color-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.service__btn:hover {
  background-color: var(--color-white);
}

.service__btn img {
  width: 15px;
  height: 15px;
}

.news {
  padding: 50px 0;
  background-color: var(--color-section-bg);
}

.news__content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.news__content h2 {
  font-size: 32px;
  color: var(--color-primary);
  font-weight: 600;
}

.news__items {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
}

.news__item {
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background-color: var(--color-white);
}

.news__item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.news__item h3 {
  padding: 20px 30px;
  padding-bottom: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-dark-text);
}
.news__item p {
  padding: 20px;
  padding-bottom: 0;
}
.news__btn {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-news-btn);
  margin-bottom: 20px;
  margin-left: auto;
  margin-right: 10px;
  margin-top: 8px;
}

.about {
  padding: 50px 0;
  background-color: var(--color-section-bg);
}

.about__content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.about__content h2 {
  font-size: 32px;
  color: var(--color-primary);
  font-weight: 600;
}

.about__content p {
  font-size: 14px;
  color: var(--color-dark-text);
  line-height: 20px;
}

.about__content ul {
  font-size: 14px;
  color: var(--color-dark-text);
  line-height: 20px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.contact {
  padding: 50px 0;
}

.contact__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  justify-content: center;
  max-width: 570px;
  margin: 0 auto;
}

.contact__content h3 {
  font-size: 14px;
  color: var(--color-primary);
  font-weight: 700;
  text-transform: uppercase;
}

.contact__content p {
  font-style: italic;
  color: var(--color-contact-italic);
  line-height: 20px;
}

.contact__form {
  padding: 20px;
  max-width: 600px;
  margin: 0 auto;
  background: #f9f9f9;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact__form__fields {
  display: flex;
  gap: 20px;
}

.contact__form input {
  min-width: 255px;
  outline: none;
  border-radius: 4px;
  border: 1px solid var(--color-dark-text);
  padding: 8px 16px;
  background-color: var(--color-white);
  color: var(--color-dark-text);
}

.contact__form button {
  align-items: center;
  justify-content: center;
}

.contact__form__checkbox {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact__form__checkbox__field {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.contact__form__checkbox label {
  font-size: 14px;
  color: var(--color-dark-text);
  font-weight: 500;
}

.contact__form__checkbox label a {
  color: var(--color-primary);
  text-decoration: underline;
}

.contact__form__checkbox input {
  width: 14px;
  min-width: auto;
}

.form-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--color-white);
  z-index: 1000;
}

.loader-spinner {
  border: 5px solid var(--color-loader-spinner-border);
  border-top: 5px solid var(--color-loader-spinner);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.error-message {
  color: var(--color-red);
  font-size: 12px;
  margin-top: 5px;
}

.thanks {
  padding: 50px 0;
  background-color: var(--color-section-bg);
}

.thanks__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  justify-content: center;
  max-width: 570px;
  margin: 0 auto;
  text-align: center;
}

.thanks__content h1 {
  font-size: 32px;
  color: var(--color-primary);
  font-weight: 600;
}

.thanks__content p {
  font-size: 14px;
  color: var(--color-dark-text);
  line-height: 20px;
}

.privacy {
  padding: 50px 0;
  background-color: var(--color-section-bg);
}

.privacy__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.privacy__content h1 {
  font-size: 32px;
  color: var(--color-primary);
  font-weight: 600;
  text-align: center;
}

.privacy__content h2 {
  font-size: 24px;
  color: var(--color-dark-text);
  font-weight: 600;
  margin-top: 20px;
}

.privacy__content p {
  font-size: 14px;
  color: var(--color-dark-text);
  line-height: 20px;
}
.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 600px;
  background-color: var(--color-white);
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: none;
  text-align: center;
  border: 2px solid var(--color-primary);
}

.cookie-popup--visible {
  display: block;
}

.cookie-popup__content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cookie-popup__content p {
  font-size: 14px;
  color: var(--color-dark-text);
  line-height: 20px;
}

.cookie-popup__link {
  color: var(--color-primary);
  text-decoration: underline;
  font-weight: 500;
}

.cookie-popup__link:hover {
  color: var(--color-hover-blue);
}

.cookie-popup__buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.cookie-popup__btn {
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 4px;
  min-width: 100px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-popup__btn--decline {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.cookie-popup__btn--decline:hover {
  background-color: var(--color-section-bg);
}

@media (max-width: 768px) {
  .header__top {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .header__right {
    flex-wrap: wrap;
    justify-content: center;
  }

  .burger-btn {
    display: block;
    margin: 0 auto;
  }

  .header__list {
    position: absolute;
    top: 100%;
    left: -100%;
    width: 100%;
    height: auto;
    background-color: var(--color-primary);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: left 0.3s ease;
    z-index: 99;
    padding: 0;
    margin: 0;
    padding-bottom: 10px;
  }

  .header__list.active {
    left: 0;
  }

  .header__link {
    font-size: 18px;
  }

  .burger-btn.active .burger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .burger-btn.active .burger-line:nth-child(2) {
    opacity: 0;
  }

  .burger-btn.active .burger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  body.menu-open {
    overflow: hidden;
  }

  .footer__top {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .footer__item {
    text-align: center;
    align-items: center;
  }

  .hero__top,
  .hero__bot {
    grid-template-columns: 1fr;
  }

  .hero__right,
  .hero__bot__right,
  .hero__bot__left {
    padding: 30px;
  }

  .hero__content h1 {
    font-size: 32px;
  }

  .services__items {
    grid-template-columns: 1fr;
  }

  .news__items {
    grid-template-columns: 1fr 1fr;
  }

  .news__item h3 {
    padding: 20px;
    padding-bottom: 0;
  }
}

@media (max-width: 576px) {
  .contact__form__fields {
    flex-direction: column;
  }

  .news__items {
    grid-template-columns: 1fr;
  }
  .cookie-popup {
    bottom: 10px;
    width: calc(100% - 40px);
  }

  .cookie-popup__buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-popup__btn {
    min-width: auto;
  }
}
html {
  scroll-behavior: smooth;
}
