:root {
  --bg: #eceef4;
  --light: #f8faff;
  --blue: #2b5dff;
  --dark: #121412;
  --muted: rgba(18, 20, 18, 0.48);
  --field: #eceef4;
  --shell-radius: 40px;
  --field-radius: 30px;
  --button-radius: 10px;
  --letter-spacing: -0.02em;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--dark);
  background: var(--bg);
  font-family: "Golos Text", Arial, sans-serif;
  font-weight: 500;
  letter-spacing: var(--letter-spacing);
  line-height: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  letter-spacing: inherit;
}

.site-header {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  width: min(100% - 120px, 1720px);
  margin: 24px auto 0;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 20px;
}

.header-nav--right {
  justify-content: flex-end;
  gap: 24px;
}

.nav-link--active,
.mobile-menu__accent {
  color: var(--blue);
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  font-size: 32px;
  text-transform: lowercase;
}

.logo img {
  display: block;
  max-width: 180px;
  max-height: 42px;
}

.logo span {
  display: none;
}

.small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  padding: 0 22px;
  border-radius: var(--button-radius);
  background: var(--light);
  font-size: 24px;
  white-space: nowrap;
}

.burger {
  display: none;
  width: 52px;
  height: 45px;
  border: 0;
  border-radius: 10px;
  background: var(--light);
  cursor: pointer;
}

.burger span {
  display: block;
  width: 22px;
  height: 3px;
  margin: 5px auto;
  border-radius: 99px;
  background: var(--dark);
}

.burger.is-open {
  background: var(--blue);
}

.burger.is-open span {
  background: #fff;
}

.mobile-menu {
  display: none;
}

.tips-shell {
  width: min(100% - 120px, 1720px);
  min-height: calc(100vh - 112px);
  margin: 24px auto 60px;
  padding: 58px 40px 64px;
  border-radius: var(--shell-radius);
  background: var(--light);
}

.tips-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 234px);
  width: 100%;
}

.mobile-page-title {
  display: none;
}
.mobile-page-subtitle {
  display: none;
}

.folders-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 330px);
  align-items: center;
  justify-content: center;
  gap: 44px;
  width: 100%;
  margin-top: -18px;
}

.folder-card {
  position: relative;
  display: block;
  width: 330px;
  height: 230px;
  transition: transform 0.18s ease;
}

.folder-card:hover {
  transform: translateY(-6px) rotate(0deg);
}

.folder-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.folder-fallback {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  padding: 74px 26px 24px;
  border-radius: 16px;
  background: var(--blue);
  color: #fff;
  font-size: 23px;
  line-height: 0.95;
}

.folder-card img[src=""],
.folder-card img:not([src]) {
  display: none;
}

.folder-card img[src=""] + .folder-fallback,
.folder-card img:not([src]) + .folder-fallback {
  display: flex;
}

.folder-fallback b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 36px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--light);
  color: var(--dark);
  font-size: 20px;
  font-weight: 500;
}

.folder-card--left {
  transform: rotate(-6deg) translateY(54px);
}

.folder-card--center {
  transform: translateY(-20px);
}

.folder-card--right {
  transform: rotate(6deg) translateY(38px);
}

.folder-card--left:hover {
  transform: rotate(-6deg) translateY(46px);
}

.folder-card--center:hover {
  transform: translateY(-28px);
}

.folder-card--right:hover {
  transform: rotate(6deg) translateY(30px);
}

.download-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  margin-top: 96px;
  padding: 0 36px;
  border-radius: 999px;
  background: var(--field);
  color: var(--dark);
  font-size: 42px;
  line-height: 1;
  transition: transform 0.18s ease;
}

.download-all:hover {
  transform: translateY(-3px);
}
@media (max-width: 900px) {
  :root {
    --shell-radius: 20px;
    --field-radius: 16px;
  }

  body {
    overflow-x: hidden;
    background: #ECEEF4;
  }

  .site-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(100% - 40px);
    max-width: 430px;
    margin-top: 28px;
  }

  .header-nav,
  .header-nav--right {
    display: none;
  }

  .logo {
    justify-content: center;
    min-width: auto;
    font-size: 20px;
  }

  .logo img {
    max-width: 94px;
    max-height: 26px;
  }

  .burger {
    position: absolute;
    right: 0;
    display: block;
    width: 52px;
    height: 45px;
    background: #F8FAFF;
  }

  .mobile-menu {
    position: absolute;
    top: 82px;
    left: 50%;
    z-index: 8;
    display: flex;
    flex-direction: column;
    gap: 26px;
    width: calc(100% - 40px);
    max-width: none;
    padding: 28px 32px 32px;
    border-radius: 16px;
    background:  #F8FAFF;
    font-size: 24px;
    transform: translateX(-50%) translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: 0.2s ease;
  }

  .mobile-menu.is-open {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
     background: #F8FAFF;
  }

  .mobile-menu__accent {
    margin-top: 20px;
  }

  .mobile-menu__accent + .mobile-menu__accent {
    margin-top: 0;
  }

  .tips-shell {
    width: calc(100% - 40px);
    max-width: 430px;
    min-height: calc(100vh - 104px);
    margin-top: 54px;
    margin-bottom: 0;
    padding: 0 0 38px;
    border-radius: 0;
    background: transparent;
  }

  .tips-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    min-height: calc(100vh - 160px);
  }

  .mobile-page-title {
  display: block;
  margin: 0 0 6px;
  color: var(--blue);
  font-size: 24px;
  line-height: 1;
  text-align: center;
}

.mobile-page-subtitle {
  display: block;
  width: min(100%, 300px);
  margin: 0 auto 32px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  text-align: center;
}

  .folders-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 16px;
    align-items: start;
    justify-content: stretch;
    width: 100%;
    margin: 0;
  }

  .folder-card,
  .folder-card--left,
  .folder-card--center,
  .folder-card--right,
  .folder-card--left:hover,
  .folder-card--center:hover,
  .folder-card--right:hover {
    width: 100%;
    height: auto;
    aspect-ratio: 1.32 / 1;
    transform: none;
  }

  .folder-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .folder-fallback {
    padding: 44px 14px 14px;
    border-radius: 12px;
    font-size: 16px;
  }

  .folder-fallback b {
    min-height: 28px;
    padding: 0 14px;
    font-size: 14px;
  }

  .download-all {
    width: 100%;
    min-height: 78px;
    margin-top: 80px;
    padding: 0 24px;
    border-radius: 999px;
    background: #E5E9F3;
    color: var(--dark);
    font-size: 28px;
    line-height: 1;
    text-align: center;
  }
}

@media (max-width: 380px) {
  .site-header,
  .tips-shell {
    width: calc(100% - 32px);
  }

  .mobile-menu {
    width: calc(100% - 32px);
  }

 .mobile-page-title {
  font-size: 24px;
}

.mobile-page-subtitle {
  margin-bottom: 32px;
  font-size: 16px;
}

  .folders-grid {
    gap: 20px 12px;
  }

  .folder-fallback {
    padding: 38px 12px 12px;
    font-size: 14px;
  }

  .download-all {
    min-height: 72px;
    font-size: 26px;
  }
}

