/* ----- */
/* Fonts */
/* ----- */

/* Georgia */
@font-face {
  font-family: Georgia;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local(Georgia),
    url(../../assets/fonts/Georgia.ttf) format('truetype'),
    url(../../assets/fonts/Georgia.woff) format('woff'),
    url(../../assets/fonts/Georgia.woff2) format('woff2');
}

@font-face {
  font-family: Georgia;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: local(Georgia),
    url(../../assets/fonts/Georgia-Bold.ttf) format('truetype'),
    url(../../assets/fonts/Georgia-Bold.woff) format('woff'),
    url(../../assets/fonts/Georgia-Bold.woff2) format('woff2');
}

@font-face {
  font-family: Georgia;
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: local(Georgia),
    url(../../assets/fonts/Georgia-Italic.ttf) format('truetype'),
    url(../../assets/fonts/Georgia-Italic.woff) format('woff'),
    url(../../assets/fonts/Georgia-Italic.woff2) format('woff2');
}

/* Arial */
@font-face {
  font-family: Arial;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local(Arial),
    url(../../assets/fonts/ArialMT.ttf) format('truetype'),
    url(../../assets/fonts/ArialMT.woff) format('woff'),
    url(../../assets/fonts/ArialMT.woff2) format('woff2');
}

@font-face {
  font-family: Arial;
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: local(Arial),
    url(../../assets/fonts/Arial-ItalicMT.woff) format('truetype'),
    url(../../assets/fonts/Arial-ItalicMT.woff) format('woff'),
    url(../../assets/fonts/Arial-ItalicMT.woff2) format('woff2');
}

/* -------------- */
/* General styles */
/* -------------- */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  max-width: 100vw;

  font-family: Georgia, serif;
}

.bg-gradient {
  background: url(../../assets/images/noise_transparent.png),
    radial-gradient(100% 215.42% at 0% 0%, #5B483A 0%, #262425 100%);
}

.overlay {
  display: none;
}

.container {
  max-width: 1220px;
  min-width: 320px;
  margin: 0 auto;
  padding: 0 10px;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.list {
  display: flex;
  flex-wrap: wrap;

  list-style: none;
}

.link {
  display: block;

  color: #f1cdb3;
  text-decoration: none;
  transition: 0.3s;
}

.link.active {
  color: #fafafa;
  border-bottom: 3px solid #f1cdb3;
  cursor: default;
}

.section {
  padding-top: 80px;
  padding-bottom: 100px;
}

.section-title {
  font-family: Georgia, serif;
  font-style: normal;
  font-weight: 400;
  font-size: 35px;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-align: left;

  color: #545454;
}

.section-picture,
.hero-picture,
.card-img,
.footer-img {
  max-width: 100%;
  height: auto;
}

.btn {
  padding: 15px 45px;

  font-family: 'Georgia';
  font-style: normal;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: 0.06em;

  color: rgba(41, 41, 41, 1);
  border: none;
  outline: none;
  border-radius: 100px;

  transition: all 0.3s linear;
}

/* Header */
.header {
  padding: 60px 0;
}

.header-container {
  display: flex;
  flex-wrap: wrap;
}

.logo-link {
  display: flex;
  flex-direction: column;
  align-items: end;
}

.logo-title {
  padding-bottom: 9px;

  font-weight: 400;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: 0.06em;

  color: #f1cdb3;
}

.logo-text {
  font-family: "Arial";
  font-weight: 400;
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: 0.105em;

  color: #ffffff;
}

.nav-list {
  column-gap: 36px;
}

.nav-link {
  font-family: "Arial";
  font-style: normal;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;

  color: #cdcdcd;
  transition: all 0.3s linear;
}

.nav-link:hover {
  color: #fafafa;
}

/* Burger-menu */
.burger-menu {
  display: none;
  width: 30px;
  height: 30px;
  margin-right: 43px;
  position: relative;
  cursor: pointer;
  transition: all 0.3s linear;
}

.burger-line {
  width: 30px;
  height: 2px;
  position: absolute;
  background-color: #f1cdb3;
  transition: all 0.3s linear;
}

.burger-menu:hover .burger-line {
  background-color: #fddcc4;
}

.burger-line_first {
  top: 3px;
}

.burger-line_second {
  top: 13px;
}

.burger-line_third {
  bottom: 5px;
}

/* Hero section */
.hero-content {
  padding-bottom: 80px;

  display: flex;
  flex-direction: column;
  row-gap: 42px;
  justify-content: space-between;
  align-items: flex-start;
}

.hero-title {
  max-width: 310px;

  font-size: 44px;
  letter-spacing: normal;

  color: #ffffff;
}

.hero-img {
  max-width: 698px;
  max-height: 728px;
}

.hero-text {
  max-width: 460px;

  font-family: 'Arial';
  font-style: normal;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;

  color: #cdcdcd;
}

.btn-filled {
  background-color: #f1cdb3;
}

.btn-filled:hover {
  background-color: #fddcc4;
}

/* About section */
.about {
  padding-top: 83px;
  padding-bottom: 96px;
}

.about-container {
  flex-direction: row-reverse;
  column-gap: 125px;
  justify-content: flex-start;
}

.about-content {
  flex-basis: 50.5%;
  padding-bottom: 8px;

  display: flex;
  flex-direction: column;
  row-gap: 25px;
}

.about-title {
  max-width: 370px;
}

.section-text {
  max-width: 430px;

  font-family: 'Arial';
  font-style: normal;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;

  color: #4c4c4c;
}

.about-img {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Friends section */
.friends {
  background-color: #f6f6f6;
}

.friends-container {
  flex-direction: column;
  row-gap: 60px;
}

.friends-title {
  text-align: center;
}

.cards {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  column-gap: 53px;
}

.cards-list {
  width: calc(100% - 52px * 2);
  justify-content: space-between;
}

.btn-ghost {
  background-color: transparent;
  border: 2px solid #f1cdb3;
}

.btn-ghost:hover {
  background-color: #fddcc4;
  border-color: #fddcc4;
}

.btn-prev,
.btn-next {
  width: 52px;
  height: 52px;
  padding: 17px;

  display: flex;
  justify-content: center;
  align-items: center;

  cursor: pointer;
}

.card {
  padding-bottom: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  row-gap: 30px;

  background-color: #fafafa;
  border-radius: 9px;

  transition: all 0.3s linear;
}

.card:hover {
  background-color: #ffffff;
  box-shadow: 0px 2px 35px 14px rgba(13, 13, 13, 0.04);
}

.card:hover .btn-card {
  background-color: #fddcc4;
  border-color: #fddcc4;
}

.card-title,
.item-title {
  font-family: 'Georgia';
  font-style: normal;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: 0.06em;

  color: #545454;
}

.btn-card {
  padding: 12px 43px 14px;
}

/* Help section */
.help-container {
  flex-direction: column;
  row-gap: 60px;
}

.help-title {
  max-width: 310px;
  text-align: center;
}

.items-list {
  column-gap: 120px;
  row-gap: 57px;
  align-items: center;
  justify-content: center;
}

.item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  row-gap: 28px;
}

.item-icon {
  max-width: 60px;
  max-height: 60px;
}

/* Donation section */
.donation {
  background-color: #f6f6f6;
}

.donation-container {
  flex-direction: row-reverse;
  justify-content: center;
  align-items: center;
  column-gap: 30px;
}

.donation-content {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: flex-start;
  row-gap: 20px;
}

.donation-title {
  max-width: 300px;
}

.donation-subtitle {
  font-style: normal;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.1;
  letter-spacing: 0.06em;

  color: #545454;
}

.btn-donation {
  height: 43px;
  padding: 0;
  padding-left: 16px;

  display: flex;
  align-items: center;


  font-style: normal;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.15;

  border-radius: 9px;
}

.credit-card-number {
  padding: 0 15px;
}

.legal-text {
  max-width: 380px;

  font-family: 'Arial';
  font-style: italic;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.5;

  color: #b2b2b2;
}

/* Footer */
.footer {
  padding-top: 18px;

  background: url(../../assets/images/noise_transparent.png),
    radial-gradient(100% 215.42% at 0% 0%, #5B483A 0%, #262425 100%);
}

.footer-container {
  flex-wrap: wrap;
  column-gap: 120px;
}

.footer-section {
  width: 302px;
  min-height: 253px;
  padding: 0;

  display: flex;
  flex-direction: column;
  row-gap: 39px;
}

.footer-section:last-of-type {
  width: 322px;
  row-gap: 32px;
}

.footer-title {
  color: #ffffff;
}

.footer-link {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  column-gap: 20px;
}

.email-link,
.phone-link,
.address-link {
  font-family: 'Georgia';
  font-style: normal;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: 0.06em;

  fill: #f1cdb3;
}

.footer-link:hover {
  color: #fddcc4;
}

.footer-link:hover .footer-icon {
  fill: #fddcc4;
}

.marker-icon:first-of-type {
  flex-shrink: 0;
}

.footer-img {
  min-height: 332px;
  padding-top: 22px;
}


/* Scroll to top button */
.scroll-up {
  display: none;
  width: 75px;
  height: 75px;

  position: fixed;
  bottom: 50px;
  right: 50px;

  stroke: #f1cdb3;
  cursor: pointer;
  transition: all 0.3s linear;
}

.scroll-up:hover {
  stroke: #fddcc4;
}

/* ------------- */
/* Media queries */
/* ------------- */

/* 768 <= width < 1280 */
@media (max-width: 1279px) {

  /* header */
  .header {
    padding-top: 30px;
  }

  .container {
    max-width: 708px;
    padding: 0;
  }

  /* hero */
  .hero-container {
    flex-direction: column;
  }

  .hero-content {
    padding-bottom: 97px;
  }

  .btn-hero {
    align-self: center;
  }

  .hero-img {
    max-width: 569px;
    max-height: 593px;
    margin-left: 139px;
  }

  /* about */
  .about-container {
    flex-direction: column;
    row-gap: 70px;
  }

  /* friends */
  .friends {
    padding-top: 84px;
  }

  .cards {
    column-gap: 12px;
  }

  .cards-item:last-child {
    display: none;
  }

  /* help */
  .items-list {
    column-gap: 60px;
  }

  .item {
    min-width: 170px;
  }

  /* donation */
  .donation {
    padding-bottom: 97px;
  }

  .donation-container {
    flex-direction: column;
    row-gap: 58px;
  }

  /* footer */
  .footer {
    padding-top: 31px;
  }

  .footer-container {
    column-gap: 60px;
    justify-content: center;
    row-gap: 23px;
  }

  .footer-section {
    width: 280px;
  }

  .footer-section:last-of-type {
    width: 300px;
  }

  .scroll-up {
    right: 25px;
  }

}

/* 320 <= width <= 768 */
@media (max-width: 767px) {

  /* general */
  .section {
    padding-top: 42px;
    padding-bottom: 43px;
  }

  .section-title {
    font-size: 25px;
    text-align: center;
  }

  /* header */
  .container {
    max-width: 300px;
    padding: 0 10px;
    position: relative;
  }

  .logo {
    z-index: 2;
  }

  .burger-menu {
    z-index: 2;
    transition: all 0.3s linear;
  }

  .burger-menu.active {
    transform: rotate(90deg);
  }

  .nav {
    max-width: 320px;
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    transform: translateX(320px);

    background-color: #292929;
    z-index: 1;
    transition: all 0.3s linear;
  }

  .nav.active {
    transform: translateX(0);
  }

  .nav-list {
    padding-top: 248px;
    row-gap: 40px;
    justify-content: center;
  }

  .nav-link {
    font-size: 32px;
    line-height: 1.6;

    color: #cdcdcd;
  }

  .overlay.active {
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(41, 41, 41, 0.6);
    z-index: 1;
  }

  .burger-menu {
    display: block;
  }

  body.stop-scrolling {
    height: 100%;
    overflow: hidden;    
}

  /* hero */
  .hero-content {
    padding-bottom: 105px;
    row-gap: 41px;
    text-align: center;
  }

  .hero-title {
    font-size: 25px;
    letter-spacing: 0.06em;
    text-align: center;
    line-height: 1.3;
  }

  .hero-text {
    max-width: 300px;
  }

  .hero-img {
    width: 260px;
    height: 272px;
    margin-right: 96px;
  }

  .hero-picture {
    width: 260px;
  }

  /* about */
  .about-container {
    row-gap: 33px;
  }

  .about-content {
    align-items: center;
    row-gap: 23px;
  }

  .section-text {
    max-width: 270px;
    text-align: justify;
  }

  .about-img {
    width: 260px;
  }

  /* friends */
  .friends-container {
    row-gap: 41px;
  }

  .cards {
    flex-wrap: wrap;
    max-width: 270px;
    justify-content: space-around;
  }

  .cards-list {
    width: 270px;
    order: 0;
  }

  .btn-prev {
    order: 1;
  }

  .btn-next {
    order: 2;
  }

  .cards-item:nth-child(2) {
    display: none;
  }

  .card {
    margin-bottom: 19px;
    row-gap: 0;
  }

  .card-title {
    padding: 30px 0;
  }

  /* help */
  .help-container {
    row-gap: 40px;
  }

  .items-list {
    padding-left: 6px;
    justify-content: flex-start;
    gap: 30px;
  }

  .item {
    min-width: 130px;
    row-gap: 20px;
  }

  .item-icon {
    max-width: 50px;
    max-height: 50px;
  }

  .item-title {
    font-size: 15px;
  }

  /* donation */
  .donation {
    padding-bottom: 38px;
  }

  .donation-container {
    row-gap: 42px;
  }

  .donation-content {
    row-gap: 22px;
  }

  .donation-subtitle {
    letter-spacing: 0;
    align-self: center;
  }

  .btn-donation {
    padding-top: 3px;
    align-self: center;
    font-size: 15px;
  }

  .legal-text {
    max-width: 280px;
    align-self: center;
    text-align: justify;
  }

  .credit-card-number {
    font-size: 15px;
  }

  .donation-img {
    max-width: 260px;
  }

  /* footer */
  .footer {
    padding-top: 29px;
  }

  .footer-container {
    row-gap: 12px;
  }

  .footer-section {
    min-height: 235px;
    padding-top: 0;
    padding-bottom: 0;
  }

  .footer-section:last-of-type {
    row-gap: 40px;
  }

  .footer-link {
    justify-content: center;
  }

  .phone-link {
    justify-content: center;
  }

  .address-link {
    justify-content: flex-start;
  }

  .footer-img {
    width: 260px;
    min-height: auto;
    padding-top: 16px;
  }

}