:root {
  --green: #12ad00;
  --green-dark: #0b9800;
  --page-bg: #f3f3f3;
  --border: #e6e6e6;
  --muted: #8a8a8a;
  --text: #111;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 1280px;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--page-bg);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

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

.topbar {
  height: 64px;
  background: #fff;
  border-bottom: 1px solid #e4e4e4;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}

.topbar__inner {
  width: 1240px;
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.brand {
  width: 230px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.brand__name {
  font-size: 31px;
  line-height: 1;
  letter-spacing: -1.2px;
  font-weight: 400;
}

.brand__tag {
  font-size: 11px;
  line-height: 14px;
  font-weight: 700;
}

.topnav {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 16px;
  flex: 1;
}

.topnav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.nav-icon {
  color: #5f6861;
  font-size: 21px;
}

.grid-icon {
  font-size: 20px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 11px;
}

.top-actions button {
  height: 41px;
  background: #fff;
  border-radius: 8px;
  cursor: default;
}

.gift {
  width: 36px;
  padding: 0;
  border: 0;
  font-size: 31px;
}

.balance {
  min-width: 99px;
  border: 1px solid #c6c6c6;
  font-size: 16px;
}

.balance span {
  color: var(--green);
  font-size: 17px;
  margin-right: 6px;
}

.outline-button {
  border: 1px solid var(--green);
  padding: 0 17px;
  font-weight: 600;
  color: #252525;
}

.add-material {
  min-width: 186px;
  font-size: 15px;
}

.crown-button {
  width: 41px;
  border: 1px solid var(--green);
  color: #fff;
  background: var(--green) !important;
  font-size: 22px;
}

.login-top {
  width: 81px;
}

.page-shell {
  width: 1240px;
  margin: 18px auto 56px;
  display: grid;
  grid-template-columns: 190px 1030px;
  gap: 20px;
}

.card {
  background: #fff;
  border-radius: 9px;
  box-shadow: 0 2px 9px rgba(0, 0, 0, 0.07);
}

.left-column {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.login-card {
  min-height: 381px;
  padding: 16px 9px 14px;
}

.login-tabs {
  display: flex;
  gap: 15px;
  padding: 2px 8px 17px;
}

.login-tab {
  border: 0;
  padding: 0;
  background: transparent;
  color: #8c8c8c;
  font-size: 16px;
}

.login-tab--active {
  color: #111;
  font-weight: 700;
}

.login-card input {
  width: 100%;
  height: 41px;
  border: 1px solid #aeb4aa;
  border-radius: 8px;
  padding: 0 11px;
  color: #888;
  background: #fff;
  font-size: 15px;
}

.password-wrap {
  position: relative;
  margin-top: 7px;
}

.eye {
  position: absolute;
  right: 11px;
  top: 12px;
  color: #aeb5ad;
  font-size: 15px;
}

.forgot {
  display: block;
  margin: 9px 0 23px;
  text-align: center;
  color: #888;
  font-size: 13px;
}

.green-button {
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  font-weight: 700;
}

.green-button:hover {
  background: var(--green-dark);
}

.login-button {
  width: 100%;
  height: 41px;
  font-size: 16px;
}

.separator {
  margin: 17px 0 10px;
  text-align: center;
  color: #999;
  font-size: 12px;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 15px;
  padding: 0 12px;
}

.social {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
}

.social--vk,
.social--mail { background: #087df2; }
.social--ok { background: #f48117; }
.social--google { background: #fff; color: #2d74d9; font-size: 24px; }
.social--ya { background: #f1392f; border-radius: 50%; font-size: 20px; }

.offer-card {
  height: 51px;
  border: 0;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  background: #fff;
}

.download-symbol {
  font-size: 24px;
  font-weight: 300;
}

.main-column {
  min-width: 0;
}

.breadcrumbs {
  height: 24px;
  display: flex;
  align-items: center;
  gap: 5px;
  color: #a0a0a0;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.breadcrumbs a {
  color: #78a8c9;
}

h1 {
  margin: 9px 0 14px;
  font-size: 32px;
  line-height: 1.18;
  letter-spacing: -0.55px;
}

.review-card {
  padding: 15px 16px;
  margin-bottom: 16px;
}

.review-heading h2 {
  margin: 0;
  font-size: 19px;
}

.review-heading p {
  margin: 4px 0 11px;
  color: #777;
}

.review-form {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 12px;
  align-items: stretch;
}

.review-form textarea {
  min-height: 72px;
  resize: vertical;
  border: 1px solid #bbc2b8;
  border-radius: 8px;
  padding: 11px 12px;
  outline: none;
}

.review-form textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(18, 173, 0, 0.1);
}

.review-submit {
  min-height: 48px;
  font-size: 16px;
}

.review-submit:disabled,
.review-form textarea:disabled {
  opacity: 0.65;
}

.review-result {
  margin-top: 12px;
  border-radius: 8px;
  padding: 11px 13px;
  line-height: 1.45;
  white-space: pre-wrap;
  background: #eff9ed;
  border: 1px solid #cce7c7;
}

.review-result--error {
  color: #8a2222;
  background: #fff1f1;
  border-color: #efcaca;
}

.content-grid {
  display: grid;
  grid-template-columns: 708px 292px;
  gap: 20px;
  align-items: start;
}

.center-column {
  display: flex;
  flex-direction: column;
  gap: 23px;
}

.gallery-card {
  height: 548px;
  padding: 16px;
  display: grid;
  grid-template-columns: 514px 142px;
  gap: 20px;
  overflow: hidden;
}

.gallery-main,
.gallery-art {
  height: 514px;
}

.gallery-art {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: #fffce1;
}

.soft-shape {
  position: absolute;
  border-radius: 50%;
  background: #f0e2bb;
}

.soft-shape--one {
  width: 520px;
  height: 240px;
  top: 73px;
  left: 147px;
  transform: rotate(9deg);
}

.soft-shape--two {
  width: 390px;
  height: 145px;
  left: -46px;
  bottom: -74px;
  transform: rotate(-13deg);
}

.paper {
  position: absolute;
  width: 226px;
  height: 320px;
  padding: 13px 11px;
  background: #fff;
  border: 1px solid #666;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.42);
}

.paper--back {
  left: 26px;
  top: 24px;
}

.paper--middle {
  left: 191px;
  top: 58px;
}

.paper--front {
  left: 264px;
  top: 170px;
}

.paper-title-lines {
  height: 24px;
  margin: 0 2px 9px;
  background: repeating-linear-gradient(to bottom, #9b9b9b 0 1px, transparent 1px 4px);
  opacity: 0.62;
}

.paper-table {
  height: calc(100% - 34px);
  border: 1px solid #777;
  background:
    linear-gradient(to right, transparent 0 28%, #898989 28% 28.6%, transparent 28.6% 100%),
    repeating-linear-gradient(to bottom, transparent 0 23px, #8b8b8b 23px 24px),
    repeating-linear-gradient(to bottom, #a8a8a8 0 1px, transparent 1px 4px);
  background-size: 100% 100%, 100% 100%, 67% 22px;
  background-position: 0, 0, right 5px top 5px;
  background-repeat: no-repeat, repeat, repeat-y;
}

.bookmark {
  position: absolute;
  right: 9px;
  top: 8px;
  width: 40px;
  height: 41px;
  border: 0;
  border-radius: 5px;
  background: #818278;
  color: #fff;
  font-size: 29px;
}

.yellow-arrow {
  position: absolute;
  right: 9px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 6px;
  color: #17220f;
  background: #ffd000;
  font-size: 30px;
  line-height: 40px;
}

.yellow-arrow--up { bottom: 56px; }
.yellow-arrow--down { bottom: 8px; }

.thumbs {
  height: 514px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
  padding-right: 1px;
}

.thumb {
  position: relative;
  flex: 0 0 144px;
  border: 0;
  border-radius: 7px;
  overflow: hidden;
  background: #fff9dc;
}

.thumb::before,
.thumb::after,
.thumb span {
  content: '';
  position: absolute;
  width: 66px;
  height: 106px;
  top: 18px;
  background: #fff;
  border: 1px solid #aaa;
  box-shadow: 1px 2px 3px rgba(0, 0, 0, 0.25);
}

.thumb::before { left: 10px; }
.thumb::after { left: 38px; top: 27px; }
.thumb span { left: 67px; top: 37px; }

.thumb::before,
.thumb::after,
.thumb span {
  background-image: repeating-linear-gradient(to bottom, #aaa 0 1px, transparent 1px 4px);
  background-size: calc(100% - 10px) 65%;
  background-position: 5px 8px;
  background-repeat: no-repeat;
}

.thumb--dark {
  margin-top: -118px;
  background: #41413b;
  opacity: 0.88;
}

.thumb--active {
  box-shadow: inset 0 0 0 2px #f5d86c;
}

.wide-download {
  width: 100%;
  min-height: 50px;
  padding: 11px 25px;
  font-size: 16px;
}

.description-card {
  padding: 16px;
  border-radius: 5px;
  box-shadow: none;
}

.description-card h2 {
  margin: 0 0 17px;
  font-size: 19px;
}

.description-card p {
  margin: 0 0 10px;
  line-height: 1.55;
}

.details-card {
  padding: 17px 15px 22px;
  box-shadow: none;
  border-radius: 17px 17px 0 0;
}

.muted-label {
  margin: 0 0 13px;
  color: #999;
}

.formats {
  display: flex;
  gap: 8px;
}

.format-button {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #e2e2e2;
  border-radius: 5px;
  background: #fff;
}

.file-icon {
  width: 17px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 2px;
  color: #fff;
  font-size: 7px;
  font-weight: 700;
}

.file-icon--pdf { background: #ef6659; }
.file-icon--doc { background: #2f65a8; font-size: 11px; }

.divider {
  height: 1px;
  margin: 15px 0 16px;
  background: #d1d1d1;
}

.tags {
  display: flex;
  gap: 9px;
}

.tags button {
  height: 33px;
  border: 1px solid #d7d7d7;
  border-radius: 18px;
  background: #fff;
  padding: 0 13px;
  color: #006d00;
}

.rating {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.rating span:last-child {
  color: #888;
}

.star {
  color: #f7b900;
  font-size: 17px;
}

.stats {
  margin: 16px 0 0;
}

.stats div {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.stats dt,
.stats dd {
  margin: 0;
}

.stats dt {
  color: #b4bbb3;
}

.stats .comment-icon {
  color: var(--green);
  margin-left: 10px;
}

.download-glow {
  position: relative;
  margin: 16px -30px 0;
  padding: 30px;
  border-radius: 28px;
  background: rgba(49, 166, 31, 0.13);
}

.download-glow::before {
  content: '';
  position: absolute;
  left: 30px;
  right: 30px;
  top: 13px;
  height: 1px;
  background: #b9d3b5;
}

.side-download {
  position: relative;
  width: 100%;
  height: 41px;
  font-size: 16px;
}

.author-label {
  margin: -4px 0 17px;
  color: #888;
}

.author {
  display: grid;
  grid-template-columns: 65px 1fr;
  gap: 15px;
}

.author-avatar {
  width: 65px;
  height: 65px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f0f0f0;
  color: #d8d8d8;
  font-size: 41px;
}

.author a {
  color: #007600;
  line-height: 1.35;
}

.author p {
  margin: 4px 0 0;
  color: #999;
  font-size: 12px;
  line-height: 1.35;
}

.details-card h3 {
  margin: 18px 0 9px;
  font-size: 15px;
  font-weight: 400;
}

.bio-line,
.biography {
  margin: 0 0 8px;
  line-height: 1.45;
}

.bio-line span {
  color: #777;
}

.author-more {
  color: #118b00;
}

[data-inert] {
  cursor: default;
}

@media (max-width: 1500px) {
  .topbar__inner,
  .page-shell {
    margin-left: 32px;
    margin-right: 32px;
  }
}
