:root {
  --black: #000000;
  --white: #ffffff;
  --brand-primary: #daf268;
  --brand-secondary: #3dd4c3;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
}

main {
  flex: 1 0 auto;
}

ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

p {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  display: inline-block;
  text-decoration: none;
  font-family: inherit;
}

input,
button {
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  color: #000000;
}

button {
  border: none;
  background-color: transparent;
  cursor: pointer;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

.open-popup-button {
  display: none;
  margin-left: auto;
  padding: 8px;
  border-radius: 8px;
  background-color: var(--brand-secondary);
  color: var(--white);
}

/* header */

.header {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  margin-bottom: 90px;
}

.nav {
  width: 100%;
  min-height: 80px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 100px;
  background-color: var(--black);
}

.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 30px;
}

.nav a {
  color: var(--white);
}

@media (max-width: 768px) {
  .header {
    min-height: unset;
    margin-bottom: 30px;
  }

  .nav {
    padding: 0 20px;
  }

  .nav ul {
    display: none;
  }

  .open-popup-button {
    display: flex;
  }
}

/* lead */

.lead {
  flex: 1;
  display: flex;
  align-items: center;
  padding-left: 100px;
  background: url("/images/lead-bg.jpg") no-repeat center;
  background-size: cover;
}

.lead > img {
  display: none;
}

.lead_wrapper {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}

.lead h1 {
  font-weight: 700;
  font-size: 80px;
  color: var(--white);
}

@media (max-width: 768px) {
  .lead {
    position: relative;
    background: none;
    padding-left: 0;
  }

  .lead > img {
    width: 100%;
    height: auto;
    display: block;
  }

  .lead_wrapper {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 50px 20px;
  }

  .lead h1 {
    font-size: 42px;
  }
}

/* about */

.about_section {
  padding: 0 100px;
  margin-bottom: 40px;
}

.about_wrapper {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}

.about_wrapper p {
  font-weight: 500;
  font-size: 28px;
}

@media (max-width: 768px) {
  .about_section {
    padding: 0 20px;
  }
}

/* news */

.news_section {
  padding: 0px 100px;
  margin-bottom: 60px;
}

.news_wrapper {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}

.news_title {
  margin-bottom: 30px;
  font-size: 40px;
  font-weight: 500;
}

.news_details {
  background-color: #e8ecf1;
  border-radius: 8px;
}

.news_details:not(:last-child) {
  margin-bottom: 15px;
}

.news_details[open] .news_summary svg {
  transform: rotate(90deg);
}

.news_summary {
  display: flex;
  gap: 30px;
  padding-right: 15px;
  cursor: pointer;
}

.news_summary::-webkit-details-marker {
  display: none;
}

.news_summary::marker {
  content: "";
}

.news_summary > div {
  padding: 15px 0;
}

.news_img {
  flex: 1;
  align-self: flex-start;
  border-radius: 8px;
}

.news_summary h3 {
  margin-bottom: 10px;
}

.news_summary p {
  margin-bottom: 10px;
}

.news_summary svg {
  flex-shrink: 0;
  align-self: center;
}

.news_date {
  display: flex;
  align-items: center;
  gap: 5px;
}

.news_content {
  padding: 15px;
}

@media (max-width: 768px) {
  .news_section {
    padding: 0px 20px;
  }

  .news_details:not(:last-child) {
    margin-bottom: 20px;
  }

  .news_summary {
    flex-direction: column;
    padding-right: 0;
    gap: 0;
  }

  .news_summary > div {
    padding: 15px;
  }

  .news_summary svg {
    width: 20px;
    height: 20px;
    margin: 0 15px 15px;
    align-self: flex-start;
  }

  .news_img {
    width: 100%;
    height: auto;
  }
}

/* contacts */

.contacts_section {
  padding: 0 100px;
  margin-bottom: 80px;
}

.contacts_wrapper {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}

.contacts_title {
  margin-bottom: 50px;
  font-size: 40px;
  font-weight: 500;
}

.contacts_list {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px 60px;
}

.contacts_list-item > a {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 24px;
  color: var(--black);
}

.contacts_list-item > a > div {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--brand-secondary);
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 768px) {
  .contacts_section {
    padding: 0 20px;
    margin-bottom: 60px;
  }

  .contacts_title {
    margin-bottom: 30px;
    font-size: 24px;
  }

  .contacts_list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contacts_list-item > a {
    gap: 10px;
    font-size: 16px;
  }
}

/* footer */

.footer {
  background-color: var(--black);
}

.footer_wrapper {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 150px 100px 50px;
}

.footer_wrapper > div {
  display: flex;
  justify-content: space-evenly;
  gap: 30px;
  margin-bottom: 190px;
}

.footer_logo-link {
  margin-bottom: 50px;
}

.footer_nav-list {
  display: flex;
  gap: 40px;
}

.footer_nav-list a {
  color: var(--white);
}

.footer_call-center h3 {
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
}

.footer_call-center a {
  display: block;
  font-size: 32px;
  font-weight: 700;
  color: var(--brand-secondary);
}

.footer_contacts_list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  color: var(--white);
}

.footer_contacts_list h3 {
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 700;
}

.footer_contacts_list a {
  font-size: 14px;
  color: var(--white);
}

.footer_text {
  color: var(--white);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 768px) {
  .footer_wrapper {
    padding: 30px 20px;
  }

  .footer_wrapper > div {
    flex-direction: column;
    margin-bottom: 80px;
  }

  .footer_nav-list,
  .footer_contacts_list {
    flex-direction: column;
    gap: 10px;
  }

  .footer_contacts_list {
    grid-template-columns: 1fr;
  }

  .footer_contacts_list br {
    display: none;
  }

  .footer_contacts_list h3,
  .footer_call-center h3 {
    margin-bottom: 0;
  }
}

.popup {
  position: relative;
  border: none;
  background-color: transparent;
}

.popup_content {
  top: 0;
  right: 0;
  position: fixed;
  min-width: 70vw;
  min-height: 80svh;
  display: flex;
  flex-direction: column;
  padding: 50px 30px;
  background: linear-gradient(169.55deg, #1bd7c1, #007467);
  border-top-left-radius: 32px;
  border-bottom-left-radius: 32px;
}

.close-popup-button {
  position: absolute;
  right: 5px;
  top: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 20px;
  padding: 5px;
}

.popup_nav {
  margin-bottom: 20px;
}

.popup_nav-list {
  text-align: right;
}

.popup_nav-list li:not(:last-child) {
  margin-bottom: 15px;
}

.popup_nav-list a {
  color: var(--white);
}

.delete-account_section {
  padding: 100px;
}

.delete-account_wrapper {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}

.delete-account_title {
  margin-bottom: 30px;
  text-align: center;
  font-size: 40px;
}

.delete-account_action-wrapper {
  max-width: 388px;
  width: 100%;
  margin: 0 auto;
}

.delete-account_input {
  display: block;
  width: 100%;
  height: 60px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  background-color: #ffffff;
  border-radius: 8px;
  outline: none;
  border: 1px solid #bbb;
}

.delete-account_button {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  border: none;
  cursor: pointer;
  width: 100%;
  font-size: 16px;
  font-weight: 700;
  border-radius: 16px;
  height: 69px;
  background-color: #3dd4c3;
  color: #ffffff;
}

.delete-account_button:disabled {
  opacity: 0.5;
}

.account-deleted-modal {
  max-width: 380px;
  width: 100%;
  border: none;
  border-radius: 8px;
  text-align: center;
}

.close-account-deleted-modal {
  display: block;
  margin-left: auto;
  margin-bottom: 5px;
}

.account-deleted-modal_text {
  margin-bottom: 10px;
}

.documents-section {
  padding: 100px;
}

.documents-section_wrapper {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}

.documents-section_list a {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #000000;
  text-decoration: underline;
}

@media (max-width: 1200px) {
  .delete-account_section {
    padding: 50px;
  }

  .documents-section {
    padding: 50px;
  }
}

@media (max-width: 768px) {
  .delete-account_section {
    padding: 30px 20px;
  }

  .delete-account_title {
    margin-bottom: 30px;
    font-size: 24px;
  }

  .documents-section {
    padding: 30px 20px;
  }
}
