h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
li {
  margin: 0;
  padding: 0;
}

*:focus,
*:active {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

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

img {
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  /* отмена выделения тапа */
  -webkit-tap-highlight-color: transparent; /* для Safari и Chrome на мобильных устройствах */
  -moz-tap-highlight-color: transparent; /* для Firefox (хоть и не поддерживается явно, это на будущее) */
  -ms-touch-action: manipulation; /* для IE и старых версий Edge */
  touch-action: manipulation; /* для современных браузеров */
  outline: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;

  white-space: nowrap;
  clip-path: inset(100%);
  clip: rect(0 0 0 0);
  overflow: hidden;
}

/* cyrillic-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/manrope/v15/xn7gYHE41ni1AdIRggqxSvfedN62Zw.woff2)
    format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/manrope/v15/xn7gYHE41ni1AdIRggOxSvfedN62Zw.woff2)
    format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* latin-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/manrope/v15/xn7gYHE41ni1AdIRggmxSvfedN62Zw.woff2)
    format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/manrope/v15/xn7gYHE41ni1AdIRggexSvfedN4.woff2)
    format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF,
    U+FFFD;
}

:root {
  --main-bg-color: #000020;
  --offers-links-bg-color: #191936;
  --sub-menu-bg-color: #000020;
  --main-text-color: #fff4f4;
  --language-btn-text-color: rgba(255, 255, 255, 0.4);
  --language-btn-dot-color: rgba(255, 255, 255, 0.7);
  --accent-secondary-text-color: rgba(255, 244, 244, 0.4);
  --grey-text-color: rgba(255, 255, 255, 0.3);
  --offers-list-hover-color: #162615;
  --offers-list-icon-color: #fff4f4;
  --social-list-icon-color: #ffffff;
}

html {
  box-sizing: border-box;
  scrollbar-gutter: stable;
}

body {
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  font-size: 18px;
  color: var(--main-text-color);
  background-color: var(--main-bg-color);
}

body::before {
  display: block;
  content: ' ';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../img/svg/mob-bg-gradient.svg');
  background-repeat: no-repeat;
  background-size: 100% 879px;
  z-index: -10;
}

.content {
  position: relative;
  z-index: 2;
}

.container {
  max-width: 375px;
  padding: 0 20px;
  margin: 0 auto;
}

.section {
  padding: 15px 0;
}

.hero-section {
  padding: 20px 0;
}

.hero-section .section {
  padding: 60px 0 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.avatar-thumb {
  display: block;
  position: relative;
  margin-bottom: 30px;
}
.official-icon {
  display: block;
  position: absolute;
  bottom: 0;
  right: 16px;
}
.main-title {
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.04em;
  margin-bottom: 10px;
}
.hero-descr {
  max-width: 255px;
  min-height: 66px;
  font-size: 15px;
  letter-spacing: -0.04em;
  line-height: 22px;
  text-align: center;
  color: var(--accent-secondary-text-color);
}

.offers-section {
  position: relative;
}

.offers-section .section {
  padding: 20px 0 20px 0;
}

.js-bg-color {
  background-color: var(--main-bg-color);
}
/* =========== Offers-list-Styles =============== */

.offers-list {
  display: flex;
  flex-direction: column;
}

.offers-list-item:not(:last-child) {
  margin-bottom: 10px;
}

.offers-link-flex-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  width: 100%;
  height: 66px;
  padding: 8px 9px 8px 34px;
  letter-spacing: -0.04em;
  background-color: var(--offers-links-bg-color);
  border-radius: 88px;
  transition: background-color 250ms linear;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.offers-link-icon-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 30px;
  background-color: transparent;
}

.offers-link-icon-thumb.isActive {
  background-color: #000020;
}

.offers-link-icon {
  fill: var(--offers-list-icon-color);
  stroke: var(--offers-list-icon-color);
}

.online-store-wrapper {
  display: flex;
  align-items: center;
}

.online-store-notice {
  display: inline-block;
  font-weight: 600;
  font-size: 13px;
  line-height: 0.7;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.3);
  border-radius: 30px;
  padding: 7px 14px 9px 14px;
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-left: 8px;
  margin-top: 2px;
}
/* Listening-link-list styles */

.sub-menu {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.6s ease;
}

.sub-menu.open {
  opacity: 1;
  max-height: 500px;
  transition: opacity 0.4s ease, max-height 0.4s ease;
}
.sub-menu-list {
  background-color: var(--sub-menu-bg-color);
  border-radius: 20px;
  margin-top: 10px;
  padding: 10px 24px;
}

.listening-links-item {
  padding: 30px 0 30px 19px;
}

.listening-links-item:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.listening-links-wrapper {
  display: flex;
  align-items: center;
}

.listening-links-icon {
  margin-right: 19px;
  fill: #ffffff;
}

.offers-list-item {
  cursor: pointer;
}

/* ========== Social-List-Styles ============= */

.social-link-container .section {
  padding: 20px 0 25px 0;
}

.container.social-link-container {
  padding-left: 20px;
}

.social-link-container {
  max-width: max-content;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.social-link-container::-webkit-scrollbar {
  display: none;
}

.social-list {
  display: flex;
  gap: 4px;
  padding: 9px 0;
}

.social-list-item {
  flex: 0 0 auto;
}

.social-list-item:last-child {
  padding-right: 20px;
}

.social-link {
  display: flex;
  width: 67px;
  height: 67px;
  justify-content: center;
  align-items: center;
  background-color: transparent;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background-color 250ms linear;
  fill: var(--social-list-icon-color);
}

.language-btn-list {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.language-btn {
  border: none;
  padding: 0;
  line-height: normal;
  background-color: transparent;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.04em;
  color: var(--language-btn-text-color);
  cursor: pointer;
  transition: color 250ms linear;
}

.language-btn-list::before {
  display: block;
  content: ' ';
  width: 13px;
  height: 13px;
  background-image: url('../img/svg/lang.svg');
  background-position: center;
  background-repeat: no-repeat;
  margin-right: 5px;
}

.language-btn-list-item {
  display: flex;
  align-items: center;
}

.language-btn-list-item:not(:last-child)::after {
  display: block;
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 100%;
  background-color: var(--language-btn-dot-color);
  margin-left: 10px;
}

.isActiveLangBtn {
  color: #ffffff;
}

.footer {
  padding: 15px 0 10px 0;
}

.footer .container {
  max-width: 335px;
  padding: 30px 10px 54px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.privacy-policy {
  max-width: 193px;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.04em;
  margin: 0 auto;
  text-align: center;
  color: rgba(255, 255, 255, 0.2);
}

.modal-window-content {
  display: flex;
  background-color: var(--sub-menu-bg-color);
  flex-direction: column;
  align-items: center;
  padding: 30px 24px 38px 24px;
  border-radius: 16px;
  margin-top: 10px;
}

.modal-title {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 5px;
}

.modal-subtitle {
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.contact-list-item {
  padding-top: 24px;
  width: 100%;
  text-align: center;
}

.contact-list-item:first-child {
  padding-top: 0;
}

.contact-list-item:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 24px;
}

.contact-list-title {
  display: block;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 5px;
}
.contact-list-descr {
  display: block;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.04em;
  color: #fff;
}

@media only screen and (min-width: 376px) and (max-width: 534px) {
  .container.social-link-container {
    padding-left: calc(20px + (100vw - 375px) * 0.54);
  }
  .social-list-item:last-child {
    padding-right: calc(20px + (100vw - 375px) * 0.54);
  }
}

@media only screen and (min-width: 768px) {
  body::before {
    background-image: url('../img/bg_blur.webp');
    background-position: center top -200px;
    background-size: auto 1300px;
  }

  .language-btn:hover {
    color: rgba(255, 255, 255, 0.5);
  }

  .language-btn.isActiveLangBtn:hover {
    color: #ffffff;
  }

  .offers-link-flex-wrapper:hover {
    background-color: rgba(35, 35, 74, 1);
  }
  .social-link-container .section {
    padding: 20px 0 25px 0;
  }
  .social-link-container.container {
    max-width: 655px;
  }
  .social-link-container {
    overflow: hidden;
    padding: 0 10px 0 10px;
  }

  .social-link:hover,
  .social-link:focus {
    background-color: rgba(255, 255, 255, 0.1);
  }
}
