:root {
  color-scheme: light;
  font: 400 100%/1.45 "Segoe UI", system-ui, Arial, sans-serif;
  color: #162027;
  background: #f4f6f6;
  --ink: #162027;
  --muted: #515f69;
  --link: #18577e;
  --line: #dbe1e2;
  --wide: 1240px;
}
* { box-sizing: border-box; }
body, h1, h2, h3, p, dl, dd, ul { margin: 0; }
a { color: var(--link); text-underline-offset: .19em; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid #008b9c; outline-offset: 3px; }
.skip { position: absolute; left: 12px; top: -60px; background: white; padding: 12px; z-index: 2; }
.skip:focus { top: 4px; }
header, footer { color: white; background: #131921; }
.bar, .menu > div, main, footer nav { max-width: var(--wide); margin: auto; padding-inline: clamp(16px, 3vw, 36px); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: clamp(14px, 3vw, 50px); min-height: 66px; }
.bar img { display: block; }
.bar form { display: flex; flex: 1; min-width: 0; }
.bar input, .bar button { font: inherit; border: 0; padding: 9px 14px; }
.bar input { min-width: 0; width: 100%; border-radius: 5px 0 0 5px; }
.bar button { background: #febd69; color: var(--ink); font-weight: 600; cursor: pointer; border-radius: 0 5px 5px 0; }
.bar a, .menu a, footer a { color: white; text-decoration: none; }
.bar a:hover, .menu a:hover, footer a:hover { text-decoration: underline; }
.menu { background: #232f3e; }
.menu > div, footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; }
.menu a { padding-block: 9px; font-size: .93rem; }
main { padding-bottom: 36px; min-height: 60vh; }
.crumb { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 9px; margin: 23px 0 16px; color: var(--muted); font-size: .86rem; }
.crumb a, .choice h3 a, .model, aside a { text-decoration: none; }
h1, h2, h3 { line-height: 1.15; color: var(--ink); overflow-wrap: anywhere; }
h1 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 600; line-height: 1.2; letter-spacing: -.018em; text-wrap: balance; }
h2 { font-size: clamp(1.35rem, 2vw, 1.8rem); letter-spacing: -.022em; margin: 0 0 14px; }
.intro { max-width: 83ch; margin-top: 13px; font-size: 1.04rem; }
.ps-stamp { margin-top: 7px; color: var(--muted); font-size: .84rem; }
.jump { display: inline-block; padding: 8px 0; margin-top: 6px; font-weight: 600; }
section { margin-top: 26px; scroll-margin: 14px; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr)); gap: 14px; }
.choice { min-width: 0; display: flex; flex-direction: column; align-items: stretch; padding: clamp(14px, 2vw, 22px); border: 1px solid var(--line); border-radius: 10px; background: white; }
.choice-image { height: clamp(150px, 15vw, 186px); display: grid; place-items: center; margin-bottom: 12px; }
.choice-image img { display: block; height: 100%; width: 100%; min-height: 0; object-fit: contain; }
.sku { margin-bottom: 6px; color: var(--muted); font-size: .8rem; overflow-wrap: anywhere; }
.choice h3 { font-size: clamp(1.06rem, 1.6vw, 1.25rem); }
.choice h3 a { color: var(--ink); }
.choice h3 a:hover, .model:hover strong, aside a:hover { text-decoration: underline; }
.price { margin: 10px 0 1px; font-size: 1.37rem; font-weight: 700; }
.stock { color: var(--muted); font-size: .87rem; }
.choice dl { margin: 16px 0; display: grid; grid-template-columns: minmax(4.8em, 42%) 1fr; align-items: start; }
.choice dt, .choice dd { min-width: 0; padding-block: 5px; line-height: 1.32; font-size: .9rem; overflow-wrap: anywhere; }
.choice dt { color: var(--muted); padding-right: 8px; }
.choice dd { font-weight: 550; }
.difference { margin: 0 0 16px; padding-top: 11px; border-top: 1px solid var(--line); font-size: .91rem; }
.open-product { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; min-height: 40px; padding: 7px 16px; border-radius: 7px; background: #ffd814; color: var(--ink); text-decoration: none; font-weight: 600; }
.open-product:hover { background: #f5c914; }
.count { vertical-align: middle; font-weight: 500; font-size: 1rem; color: var(--muted); }
.gta-heading {
  padding: clamp(25px, 4.4vw, 62px);
  border-radius: 14px;
  color: #fff8f4;
  background-color: #241332;
  background-image: linear-gradient(90deg, rgba(25, 13, 35, .98), rgba(28, 12, 34, .9) 42%, rgba(21, 7, 31, .15) 76%), url("/assets/market/home-gta6.webp");
  background-size: cover;
  background-position: center, center right;
}
.seasonal-heading {
  display: grid;
  align-content: center;
  min-height: clamp(215px, 25vw, 310px);
  padding: clamp(22px, 4vw, 56px);
  background-position: center, center right;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 14px;
  color: #fff;
}
.seasonal-gifts {
  background-color: #263e37;
  background-image: linear-gradient(90deg, #122d26 0%, #122d26eb 40%, #122d2600 80%), url("/assets/market/home-gamer-gifts.webp");
}
.seasonal-laptops {
  background-color: #1d3240;
  background-image: linear-gradient(90deg, #182d39 0%, #182d39eb 40%, #182d3900 80%), url("/assets/market/home-light-laptops.webp");
}
#content .seasonal-heading h1 { max-width: 18ch; color: inherit; font: 600 clamp(2rem, 4vw, 3.45rem)/1.05 Georgia, serif; }
.seasonal-heading p { max-width: min(54%, 48ch); margin-top: 16px; }
.seasonal-budgets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.seasonal-budgets a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 6px 17px; border: 1px solid var(--line);
  border-radius: 24px; background: white; color: var(--ink); font-weight: 600; text-decoration: none;
}
.seasonal-budgets a:hover { text-decoration: underline; }
.seasonal-budgets a[aria-current] { color: white; background: #263e37; border-color: #263e37; }
@media (max-width: 680px) {
  .seasonal-heading { background-position: center, 65% center; background-blend-mode: normal, multiply; }
  #content .seasonal-heading h1 { max-width: 15ch; font-size: clamp(1.8rem, 7vw, 2.6rem); }
  .seasonal-heading p { max-width: 33ch; }
}
#content .gta-heading h1 {
  max-width: 54%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.2vw, 3.8rem);
  line-height: 1.04;
  letter-spacing: -.04em;
  color: inherit;
}
.gta-heading p { max-width: min(52%, 50ch); line-height: 1.48; margin: 16px 0 0; }
.gta-heading p.gta-platforms { color: #f3d9e6; font-size: .93rem; }
.gta-button { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 17px; margin-top: 22px; border-radius: 6px; background: #ffe2c4; color: #331c26; text-decoration: none; font-weight: 650; }
.gta-button:hover { background: #ffecdb; }
.gta-factors { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gta-factors article, .gta-questions details { background: white; border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; }
.gta-factors h3 { font-size: 1.1rem; margin-bottom: 8px; }
.gta-factors p, .gta-questions details p { line-height: 1.55; }
.gta-questions details { margin-block: 7px; padding-block: 0; }
.gta-questions summary { cursor: pointer; padding-block: 13px; font-weight: 600; }
.gta-questions details p { padding-bottom: 15px; max-width: 80ch; }
@media (max-width: 760px) {
  .gta-heading {
    background-image: linear-gradient(90deg, rgba(25, 13, 35, .96), rgba(28, 12, 34, .83) 66%, rgba(21, 7, 31, .56)), url("/assets/market/home-gta6.webp");
    background-position: center, 65% center;
  }
  .gta-heading p { max-width: 50ch; }
  #content .gta-heading h1 { max-width: 16em; }
  .gta-factors { grid-template-columns: 1fr; gap: 8px; }
}
.models { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.models li { min-width: 0; border: 1px solid var(--line); background: white; border-radius: 7px; }
.model { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 98px; padding: 12px; height: 100%; }
.model-image img { display: block; width: 72px; height: 66px; object-fit: contain; }
.model-info, .model-price { display: grid; gap: 3px; }
.model-info strong { font-size: .98rem; line-height: 1.27; overflow-wrap: anywhere; }
.model-info span, .model-info small, .model-price small { color: var(--muted); font-size: .81rem; overflow-wrap: anywhere; }
.model-price { text-align: right; }
.model-price b { color: var(--ink); }
.pagination { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 17px; }
.pagination a { display: inline-grid; min-width: 40px; min-height: 40px; place-items: center; text-decoration: none; border: 1px solid var(--line); border-radius: 5px; background: white; }
.pagination a[aria-current] { background: #232f3e; color: white; border-color: #232f3e; }
aside { border-top: 1px solid var(--line); margin-top: 27px; padding-top: 17px; font-weight: 600; }
footer nav { padding-block: 20px; font-size: .9rem; }
.fullhd-article { max-width: 920px; margin-inline: auto; }
.fullhd-article section { margin-block: 26px; }
.fullhd-article section > p { margin-block: 10px; max-width: 81ch; }
.fullhd-article .choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fullhd-article figure { margin: 0 0 10px; }
.fullhd-article figcaption { margin-top: 4px; color: var(--muted); font-size: .8rem; }
#fullhd-fps { width: 100%; margin-block: 16px; border-collapse: collapse; font-variant-numeric: tabular-nums; background: white; }
#fullhd-fps caption { text-align: left; margin-bottom: 8px; }
#fullhd-fps th, #fullhd-fps td { padding: 9px 7px; border: 1px solid var(--line); text-align: center; }
#fullhd-fps thead { color: var(--ink); background: #e8eff0; }
#fullhd-fps tbody th { text-align: left; }
@media (max-width: 680px) {
  .fullhd-article .choices { grid-template-columns: 1fr; }
  #fullhd-fps { table-layout: fixed; font-size: .85rem; }
  #fullhd-fps th, #fullhd-fps td { padding: 7px 3px; overflow-wrap: anywhere; }
  #fullhd-fps thead tr:first-child th:first-child { width: 32%; }
}
@media (max-width: 960px) {
  .models { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .bar { flex-wrap: wrap; justify-content: space-between; gap: 9px; padding-block: 11px; }
  .bar img { width: 129px; height: auto; }
  .bar form { order: 1; flex-basis: 100%; }
  .menu > div { flex-wrap: nowrap; gap: 0 14px; overflow-x: auto; }
  .menu a { flex: none; white-space: nowrap; font-size: .85rem; }
  .menu a:focus-visible { outline-offset: -3px; }
  .crumb { margin-top: 17px; }
  .choices { grid-template-columns: 1fr; }
  .model { grid-template-columns: 62px minmax(0, 1fr); gap: 6px 10px; }
  .model-image { grid-row: span 2; }
  .model-image img { width: 62px; height: 62px; }
  .model-price { grid-column: 2; justify-items: start; text-align: left; }
}

@media (max-width: 899px) {
  body:has(> main#content) {
    --ink: #24221f;
    --muted: #655f58;
    --link: #78442a;
    --line: #e6dfd7;
    --guide-gutter: clamp(12px, 3.8vw, 26px);
    color: var(--ink);
    background: #fbfaf8;
  }
  header:has(> .bar), footer:has(> nav[aria-label="Покупателям"]) { background: #211f1e; }
  header .bar, header .menu > div, main#content, footer nav[aria-label="Покупателям"] { padding-inline: var(--guide-gutter); }
  .bar > a { display: inline-flex; align-items: center; min-height: 44px; }
  .bar > a:last-child { padding-inline: 12px; border: 1px solid #494644; border-radius: 12px; background: #302e2c; }
  .bar form[role="search"] { height: 50px; padding: 3px; border-radius: 12px; background: white; }
  .bar form[role="search"]:focus-within { outline: 2px solid #ffba73; outline-offset: 2px; }
  .bar form[role="search"] input { padding-inline: 10px; border-radius: 10px; font-size: 1rem; }
  .bar form[role="search"] button { border-radius: 9px; background: #ffba73; color: #241b17; font-size: .9375rem; }
  header .menu { background: #302e2c; }
  header .menu a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 5px; font-size: .875rem; font-weight: 550; }
  #content .crumb, #content .pk-deal-trail { margin: 0; padding: 14px 0; color: var(--muted); }
  #content .crumb a { color: var(--muted); }
  #content h1 { font-size: clamp(1.8rem, 6vw, 2.65rem); line-height: 1.12; letter-spacing: -.035em; }
  #content .intro { margin-top: 12px; font-size: 1rem; line-height: 1.5; }
  #content .jump { display: inline-flex; align-items: center; min-height: 44px; }
  #content .choice, #content .models li, #content .pk-deal-card { border-radius: 15px; border-color: var(--line); }
  #content .choice-image { padding: 12px; border-radius: 11px; background: #f7f5f2; }
  #content .choice-image img { mix-blend-mode: multiply; }
  #content .choice dl { gap: 0 6px; }
  #content .choice dt, #content .choice dd { padding-block: 7px; }
  #content .open-product {
    align-self: stretch;
    justify-content: center;
    min-height: 44px;
    border-radius: 10px;
    background: #ffba73;
    color: #241b17;
  }
  #content .pagination a { min-width: 44px; min-height: 44px; border-radius: 10px; }
  #content .pagination a[aria-current] { border-color: #302e2c; background: #302e2c; }
  #content #fullhd-fps thead { background: #f2ece5; }
  #content .pk-deal-heading { border-radius: 15px; background: #f1e8dc; }
  #content .pk-deal-card-photo { flex: none; aspect-ratio: 1.18; background: #f7f5f2; }
  #content .pk-deal-card-photo img {
    position: absolute;
    inset: 30px 8px 6px;
    width: calc(100% - 16px);
    height: calc(100% - 36px);
  }
  #content .pk-deal-page .pk-pickup:not(:disabled), #content .pk-deal-page .pk-purchase-counter {
    min-height: 44px;
    border-radius: 10px;
    border-color: #ffba73;
    background: #ffba73;
    color: #241b17;
  }
  #content .pk-deal-page .pk-purchase-counter button:hover:not(:disabled) { background: #ffac58; }
  footer nav[aria-label="Покупателям"] a { display: inline-flex; align-items: center; min-height: 44px; }
}

@media (max-width: 680px) {
  header .bar { padding-block: 8px 12px; gap: 6px 8px; }
  header .menu > div { gap: 0 12px; }
  #content .pk-deal-heading { align-items: flex-start; gap: 14px; }
  #content .pk-deal-heading .pk-deal-clock { flex-flow: row wrap; align-items: baseline; gap: 4px 8px; padding: 0; }
  #content .pk-deal-heading .pk-deal-clock strong { font-size: 1.2rem; }
  #content .pk-deal-heading .pk-deal-clock time { font-size: .8125rem; }
  #content .pk-deal-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  #content :is(.models, .choices, .pk-deal-list) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-inline: calc(10px - var(--guide-gutter));
  }

  #content .model, #content .choice {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    gap: 0;
    padding: 0 8px 10px;
  }

  #content :is(.model-image, .choice-image, .pk-deal-card-photo) {
    position: relative;
    display: grid;
    place-items: center;
    height: auto;
    flex: none;
    aspect-ratio: 3 / 4;
    padding: 0;
    background: #f7f5f2;
    border-radius: 14px 14px 0 0;
  }
  #content :is(.model-image, .choice-image) { margin: 0 -8px 8px; }
  #content .pk-deal-card-photo { margin: 0; }
  #content :is(.model-image, .choice-image, .pk-deal-card-photo) img {
    position: absolute;
    inset: 8px;
    width: calc(100% - 16px);
    height: calc(100% - 16px);
    object-fit: contain;
  }

  #content .model-price { margin-top: auto; padding-top: 8px; }
  #content .choice h3 { font-size: 1rem; line-height: 1.25; }
  #content .choice .price { font-size: 1.1rem; }
  #content .choice dl { grid-template-columns: 1fr; margin-block: 10px; }
  #content .choice dt { padding: 5px 0 0; }
  #content .choice dd { padding: 2px 0 5px; }
  #content .open-product { padding-inline: 5px; text-align: center; }
  #content .pk-deal-details h3 { margin-bottom: 8px; }
}
