/* ------------------- */
/* Custom properties   */
/* ------------------- */

:root {
  /* colors */
  --clr-white: #ffffff;
  --clr-black: #000000;
  --clr-gray: #cdcdcd;
  --clr-white-active: #fafafa;
  --crl-light: #f6f6f6;
  --clr-gold: #f1cdb3;
  --clr-gold-hover: #fddcc4;
  --clr-dark-h: #545454;
  --clr-dark-p: #4c4c4c;
  --clr-btn-dark: #292929;
  --clr-dark-light: #b2b2b2;

  /* font-families */
  --ff-serif: 'Georgia', serif;
  --ff-sans-normal: 'Arial', sans-serif;
}

/* ------------------- */
/* Reset               */
/* ------------------- */

/* https://piccalil.li/blog/a-modern-css-reset/ */

/* Box sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Reset margins */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
picture {
  margin: 0;
}
h1,
h2,
h3,
h4,
h5,
h6,
p {
  font-weight: 400;
}

/* set up the body */

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--ff-serif);
  color: var(--clr-black);
  background-color: var(--clr-white);
  min-height: 100vh;
}

.body__wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
}

/* make images easier to work with */
img {
  max-width: 100%;
  display: block;
}

/* make form elements easier to work with */
input,
button,
textarea,
select {
  font: inherit;
}

/* remove animations for people who've turned them off */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ------------------- */
/* Basic elements      */
/* ------------------- */
h2 {
  font-size: 44px;
  line-height: 57.2px;
  color: var(--clr-white);
  max-width: 310px;
}

h3 {
  font-size: 35px;
  line-height: 45.5px;
  letter-spacing: 0.06em;
  color: var(--clr-dark-h);
}

h4 {
  font-size: 20px;
  line-height: 22.72px;
  letter-spacing: 0.06em;
}

h5 {
  font-size: 15px;
  line-height: 16.5px;
  letter-spacing: 0.06em;
  color: var(--clr-dark-h);
}

h6 {
  font-family: var(--ff-sans-normal);
  font-style: italic;
  font-size: 12px;
  line-height: 18px;
  color: var(--clr-dark-light);
}

p {
  font-family: var(--ff-sans-normal);
  font-size: 15px;
  line-height: 24px;
}

/* ------------------- */
/* Components         */
/* ------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap; /* added line */
  border: 0;
}

.header__wrapper {
  width: 100%;
  max-width: 1280px;
  display: flex;
  justify-content: space-between;
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translate(-50%, -50%); /* центрует header*/
  z-index: 3;
}

.wrapper {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.logo {
  margin-left: 40px;
}

nav {
  margin-right: 40px;
  overflow-x: hidden;
}

.logo a {
  color: var(--clr-gold);
  line-height: 35.2px;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.logo p {
  color: var(--clr-white);
  size: 13px;
  line-height: 14.95px;
  letter-spacing: 0.04em;
  margin-top: 10px;
}

.navigation {
  display: flex;
  list-style: none;
}

.navigation > :not(*:first-child) {
  margin-left: 35px;
}

.navigation a {
  text-decoration: none;
  color: var(--clr-gray);
  font-size: 15px;
  line-height: 24px;
  letter-spacing: 0.005em;
}

.navigation a:hover {
  color: var(--clr-white-active);
}

.active > a {
  color: var(--clr-white-active);
  padding-bottom: 4px;
  border-bottom: 3px solid var(--clr-gold);
  cursor: default;
}

.mobile-nav-toggle {
  display: none;
}

.not-only {
  position: relative;
  max-width: 1280px;
  padding-top: 180px;
  margin: 0 auto;
  background: url(../assets/images//start-screen-gradient-background.svg)
    no-repeat center center / cover;
}

.not-only__container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 40px;
}
.not-only__content {
  max-width: 460px;
  margin-top: 163px;
}

.not-only__content p {
  font-family: var(--ff-sans-normal);
  font-size: 15px;
  line-height: 24px;
  color: var(--clr-gray);
  max-width: 460px;
  margin: 43px 0;
}

.button {
  display: inline-block;
  text-decoration: none;
  font-size: 17px;
  line-height: 22.1px;
  letter-spacing: 0.06em;
  padding: 12px 43px;
  background-color: var(--clr-gold);
  border: 2px solid var(--clr-gold);
  border-radius: 100px;
  color: var(--clr-btn-dark);
}

.button:hover {
  background-color: var(--clr-gold-hover);
  border: 2px solid var(--clr-gold-hover);
}

@media (width < 1240px) {
  .not-only__image {
    width: 610px;
  }
}
@media (width < 1150px) {
  .not-only__image {
    max-width: 569px;
    margin-top: 100px;
  }

  .not-only__container {
    justify-content: center;
  }

  .not-only__content {
    margin-top: 0;
  }
}

@media (width < 930px) {
  .not-only {
    padding-top: 150px;
  }
  .not-only__container {
    justify-content: center;
  }

  .not-only__image {
    margin: 99px 0 0 140px;
  }

  .not-only__content h2,
  .not-only__content p {
    text-align: left;
  }
}

@media (width < 769px) {
  .not-only__content {
    text-align: center;
  }
  .logo {
    margin-left: 30px;
  }

  nav {
    margin-right: 30px;
  }
}

@media (width < 768px) {
  .mobile-nav-toggle {
    display: block;
    position: absolute;
    z-index: 2000;
    right: 20px;
    top: 15px;
    background: transparent;
    background-image: url(../assets/icons/Burger-gold.svg);
    background-repeat: no-repeat;
    width: 30px;
    aspect-ratio: 1;
    border: 0;
  }

  .mobile-nav-toggle[aria-expanded='true'] {
    background-image: url(../assets/icons/Burger-gold-turn.svg);

    top: 19px;
  }

  .not-only__content h2,
  .not-only__content p {
    text-align: center;
  }

  h2 {
    max-width: 460px;
    font-size: 25px;
    line-height: 32.5px;
  }

  .not-only__image {
    min-width: 260px;
  }

  .navigation {
    position: fixed;
    background: var(--clr-btn-dark);
    inset: -30px 0 -100vh 17%;
    z-index: 100;
    padding: 250px 0 0 0;
    margin: 0;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 500ms ease-in-out;
  }

  .navigation[data-visible='true'] {
    transform: translateX(0);
  }

  .navigation > :not(*:first-child) {
    margin: 40px auto 0;
  }

  .navigation > :first-child {
    margin: 0 auto;
  }

  .navigation a {
    font-size: 32px;
    line-height: 51.2px;
  }

  /* Shadow */
  #shadow-window {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 17.5vw;
    background: rgba(41, 41, 41, 0.6);
    opacity: 0.6;
    z-index: 5;
  }
}

@media (width < 400px) {
  .not-only__image {
    margin: 106px 0 0 39px;
  }
  .logo {
    margin-left: 20px;
  }

  nav {
    margin-right: 20px;
  }
  .navigation {
    inset: -30px 0 -100vh 0;
  }
  .mobile-nav-toggle {
    top: 18px;
  }

  .not-only__content h2 {
    letter-spacing: 0.06rem;
    width: 250px;
    margin: 0 auto;
  }

  .not-only__content p {
    width: 300px;
    margin: 42px 0;
  }
  /* Shadow */
  #shadow-window {
    height: 0vh;
    width: 0vw;
  }
}

/* ABOUT */
.about {
  background-color: var(--clr-white);
}
.about-container {
  padding: 80px 40px 100px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap-reverse;
}

.about-container__text {
  max-width: 430px;
  margin-left: 120px;
  padding-top: 14px;
}

.about-container__text h3 {
  max-width: 370px;
}

.about-container__text p {
  margin-top: 25px;
}

@media (width < 931px) {
  .about-container__text {
    margin: 0 0 80px 0;
    padding-top: 1px;
  }
}

@media (width < 400px) {
  .about-container {
    padding: 42px 10px;
  }

  .about-container__text {
    text-align: justify;
    margin-bottom: 42px;
    padding: 2px 15px 0;
  }

  .about-container img {
    width: 260px;
  }

  h3 {
    font-size: 25px;
    line-height: 32.5px;
  }

  .about-container__text h3 {
    text-align: center;
  }

  .about-container__text p {
    margin-top: 24px;
  }
}

/* FRIENDS */
.friends {
  background-color: var(--crl-light);
  padding: 80px 40px 100px;
  text-align: center;
}

.friends-container h3 {
  max-width: 400px;
  margin: 0 auto;
}

.friends-slider {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 60px 0;
}

.arrow {
  padding: 21px 17px;
  border: 2px solid var(--clr-gold);
  border-radius: 50%;
}

.arrow:hover {
  background-color: var(--clr-gold-hover);
  border: 2px solid var(--clr-gold-hover);
  cursor: pointer;
}

.friends-slider__wrapper {
  flex: 1;
  max-width: 990px;
  overflow: hidden;
}

.slider-line {
  width: 2790px;
  display: flex;
  justify-content: space-between;
  position: relative;
  left: 0;
  transition: all ease 1s;
}

.light-button {
  background-color: transparent;
}

.light-button:hover {
  background-color: var(--clr-gold-hover);
  border: 2px solid var(--clr-gold-hover);
  cursor: pointer;
}

.card {
  min-width: 270px;
  border-radius: 9px;
  background-color: var(--clr-white-active);
}

.card > * {
  margin-bottom: 31px;
}

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

@media (width < 1180px) {
  .slider-line {
    width: 2440px;
  }
  .friends-slider__wrapper {
    max-width: 580px;
  }
}

@media (width < 760px) {
  .slider-line {
    width: 2160px;
  }
  .friends-slider__wrapper {
    max-width: 270px;
  }
}

@media (width < 1070px) {
  .friends {
    padding: 78px 30px 100px;
    text-align: center;
  }

  .friends-slider {
    margin-bottom: 62px;
  }
}

@media (width < 450px) {
  .friends {
    padding: 39px 10px;
  }
  .friends-slider {
    flex-direction: column;
    margin: 40px 0 44px;
  }
  .friends-slider__wrapper {
    order: 1;
  }
  .arrow-left {
    order: 2;
    margin: 23px 0 0 -132px;
  }
  .arrow-right {
    order: 2;
    margin: -53px -133px 0 0;
  }
}

/* HELP */
.help {
  background-color: var(--clr-white);
  padding: 81px 40px 100px;
  text-align: center;
}

.help-container h3 {
  max-width: 310px;
  margin: 0 auto 60px;
}
.help-container__box {
  max-width: 1026px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 56px 119px;
}

.help-container__box > * {
  display: inline-block;
}

.help-card img {
  margin: 0 auto 30px;
}

@media (width < 800px) {
  .help {
    padding: 81px 40px 100px;
  }

  .help-container__box {
    max-width: 650px;
    gap: 55px 60px;
  }
  .help-card {
    width: 170px;
  }
}

@media (width < 500px) {
  .help {
    padding: 46px 15px 42px;
  }

  .help-container__box {
    justify-content: start;
    max-width: 290px;
    gap: 30px 30px;
  }
  .help-container h3 {
    max-width: 223px;
    margin-bottom: 41px;
  }

  .help-card {
    width: 130px;
  }
  .help-card img {
    width: 50px;
  }
  .help-card h4 {
    font-size: 15px;
    line-height: 16.5px;
    letter-spacing: 0.06em;
  }

  .help-card img {
    margin: 0 auto 21px;
  }
}

/* ADDITION */

.addition {
  background-color: var(--crl-light);
}

.addition-container {
  padding: 80px 20px 100px;
}

.addition-container__info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 915px;
  margin: 0 auto;
}

.addition__text-box {
  max-width: 380px;
}

.addition__text-box h3 {
  max-width: 300px;
  margin-bottom: 20px;
}

.addition__text-box h5 {
  margin-bottom: 20px;
}

.addition__bank-link {
  display: flex;
  text-decoration: none;
  color: var(--clr-dark-h);
  background-color: var(--clr-gold);
  font-size: 20px;
  line-height: 23px;
  letter-spacing: 0.06em;
  max-width: 350px;
  padding: 10px 15px;
  gap: 15px;
  border-radius: 9px;
  margin-bottom: 20px;
}

@media (width < 931px) {
  .addition-container__info {
    flex-direction: column-reverse;
  }
  .addition__text-box {
    margin-bottom: 60px;
  }
}

@media (width < 450px) {
  .addition-container {
    padding: 39px 10px 42px;
  }
  .addition__bank-link {
    max-width: 282px;
    font-size: 15px;
    line-height: 16.5px;
    margin: 0 auto 20px;
    padding-top: 14px;
    padding-bottom: 6px;
  }
  .addition__text-box {
    text-align: center;
    margin-bottom: 43px;
  }
  .addition__text-box h3 {
    max-width: 220px;
    margin: 0 auto 20px;
  }

  .addition__text-box h5 {
    margin: 0 auto 20px;
    line-height: 24px;
    letter-spacing: 0;
  }
  .addition__text-box h6 {
    max-width: 280px;
    text-align: justify;
  }

  .addition-container__info img {
    max-width: 260px;
  }
}

/* FOOTER */
.footer-container {
  padding: 40px 40px 0;
  background: url(../assets/images/footer-gradient-background.svg) no-repeat
    center center / cover;
}

.footer-info {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-text {
  max-width: 302px;
  margin-top: 16px;
}
.footer-info div:first-child {
  max-width: 279px;
}

.footer-text h3 {
  color: var(--clr-white);
  letter-spacing: 0.06em;
}
.footer-text a {
  display: flex;
  text-decoration: none;
  color: var(--clr-gold);
  gap: 20px;
  align-items: center;
  font-size: 20px;
  line-height: 23px;
  letter-spacing: 0.06em;
  margin-top: 40px;
}

.footer-text__second a {
  margin-top: 32px;
}

@media (width < 1070px) {
  .footer-container {
    padding: 30px 30px 0;
  }

  .footer-text {
    margin: 0 auto;
  }

  .footer-info__img {
    margin: 62px auto 0;
  }
}

@media (width < 660px) {
  .footer-container {
    padding: 30px 10px 0;
  }

  .footer-info {
    flex-direction: column;
  }

  .footer-text h3 {
    max-width: 270px;
    margin: 0 auto;
  }

  .footer-text__first a {
    max-width: 251px;
    margin: 40px auto 0;
  }

  .footer-text__first a:last-child {
    gap: 26px;
  }

  .footer-text {
    text-align: center;
  }

  .footer-text__second {
    margin-top: 38px;
  }

  .footer-text__second a {
    margin-top: 40px;
    text-align: start;
  }

  .footer-info__img {
    max-width: 260px;
    margin-top: 40px;
  }
}
/* SCROLL */
.unscroll {
  overflow: hidden;
}

/* MODAL */
.popup .overlay {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(41, 41, 41, 0.6);
  z-index: 2000;
  display: none;
}

.popup.active .overlay {
  display: block;
}

.popup .modal-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 945px;
  height: 552px;
  padding-top: 52px;
  padding-right: 45px;
  margin-left: 16px;
  z-index: 2100;
}

.popup .close-btn {
  position: absolute;
  right: 0;
  top: 0;
  padding: 18px;
  border: 2px solid var(--clr-gold);
  border-radius: 100px;
}

.popup .close-btn:hover {
  cursor: pointer;
  background-color: var(--clr-gold-hover);
  border: 2px solid var(--clr-gold-hover);
}

.modal-card {
  display: flex;
  width: 900px;

  border-radius: 9px;

  background-color: var(--clr-white-active);
}

.modal-card__text > * {
  color: var(--clr-black);
}

.modal-card img {
  width: 500px;
  height: 500px;
}

.modal-card__text {
  padding: 50px 20px 64px 29px;
}

.modal-card__text h3 {
  margin-bottom: 10px;
}

.modal-card__text h5 {
  margin: 40px 0;
}
.modal-list {
  font-size: 15px;
  line-height: 16.5px;
  letter-spacing: 0.06em;
  color: var(--clr-gold);
}

.modal-list li span {
  color: var(--clr-black);
}

.modal-list > :not(*:last-child) {
  margin-bottom: 10px;
}

@media (width < 1050px) {
  .modal-card img {
    width: 350px;
    height: 350px;
  }
  .modal-card__text {
    padding: 10px 8px 26px 11px;
  }

  .modal-card__text h5 {
    font-size: 13px;
    line-height: 14.3px;
    margin: 20px 0;
  }

  .modal-list > :not(*:last-child) {
    margin-bottom: 5px;
  }

  .popup .modal-container {
    width: 682px;
  }

  .modal-card {
    width: 630px;
  }
}

@media (width < 730px) {
  .modal-card__text {
    padding: 10px;
  }
  .modal-card img {
    display: none;
  }
  .popup .modal-container {
    width: 270px;
  }

  .modal-card {
    width: 240px;
  }
}
