:root {
  color-scheme: dark;
  font-family: Inter, system-ui, sans-serif;
  background: #151316;
  color: #fbf3eb;
  --muted: #d3c5bb;
  --accent: #ffbd78;
  --line: #594336;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 90px; }
body.avs-home { margin: 0; line-height: 1.5; background: radial-gradient(ellipse at 50% 0, #2e2422, transparent 780px); }
.avs-home a { color: inherit; text-decoration: none; }
.avs-home button, .avs-home input { font: inherit; }
.avs-home img { display: block; width: 100%; }
.avs-home :focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.avs-shell { width: min(1760px, calc(100% - clamp(32px, 6vw, 124px))); margin-inline: auto; }
.avs-visually-hidden, .avs-skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.avs-skip:focus { position: fixed; left: 12px; top: 12px; z-index: 20; padding: 10px; background: #151316; }

.avs-header { position: sticky; top: 0; z-index: 10; background: #1b1718f7; border-bottom: 1px solid #463630; }
.avs-header-row { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 36px); min-height: 76px; }
.avs-brand { display: inline-flex; align-items: center; gap: 14px; flex: none; }
.avs-mark { display: grid; place-items: center; width: 42px; height: 31px; border: 2px solid var(--accent); border-radius: 8px; flex: none; }
.avs-mark::after { content: ""; border-left: 9px solid var(--accent); border-block: 6px solid transparent; margin-left: 2px; }
.avs-brand-text { display: grid; gap: 1px; line-height: 1.2; }
.avs-brand-text strong { font-size: 20px; letter-spacing: -.035em; }
.avs-brand-text small { font-size: 11px; color: var(--muted); }
.avs-nav { display: flex; gap: clamp(16px, 2vw, 32px); margin-left: auto; font-size: 15px; }
.avs-nav a:hover, .avs-footer nav a:hover { color: var(--accent); }
.avs-search-link, .avs-menu { min-height: 42px; border: 1px solid var(--line); border-radius: 10px; }
.avs-search-link { display: grid; place-items: center; width: 42px; flex: none; }
.avs-lens { position: relative; display: block; width: 16px; height: 16px; border: 2px solid var(--accent); border-radius: 50%; }
.avs-lens::after { content: ""; position: absolute; width: 7px; height: 2px; background: var(--accent); bottom: -3px; right: -5px; transform: rotate(45deg); }
.avs-menu { display: none; color: inherit; background: #2a2120; padding: 0 11px; cursor: pointer; }

.avs-hero { position: relative; isolation: isolate; display: grid; align-items: center; overflow: hidden; margin-top: 22px; min-height: clamp(420px, 36vw, 630px); border: 1px solid var(--line); border-radius: 25px; background: #211918; }
.avs-hero-media { position: absolute; inset: 0 0 0 auto; width: 81%; z-index: -2; }
.avs-hero-media img { height: 100%; object-fit: cover; object-position: right 47%; }
.avs-hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #211918 19%, #211918f5 28%, #211918d9 39%, #2119186b 50%, transparent 63%); }
.avs-hero-copy { width: min(51%, 710px); padding: 30px 10px 42px clamp(26px, 4vw, 76px); }
.avs-hero h1 { color: #fff5ec; margin: 0; font-size: clamp(48px, 5.5vw, 82px); line-height: .99; letter-spacing: -.065em; font-weight: 790; }
.avs-hero h1 span { display: block; color: var(--accent); }
.avs-hero p { max-width: 34ch; margin: 24px 0 26px; color: #f0dfd3; font-size: clamp(16px, 1.35vw, 22px); }
.avs-actions { display: flex; gap: 11px; flex-wrap: wrap; }
.avs-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 47px; padding: 10px 17px; border: 1px solid transparent; border-radius: 10px; font-weight: 720; cursor: pointer; text-align: center; }
.avs-home .avs-primary { color: #28170f; background: #f6ad67; }
.avs-home .avs-primary:hover { background: #ffc58b; }
.avs-secondary { background: #211918e8; border-color: #a77b61; }
.avs-secondary:hover { background: #3b2b25; }

.avs-search-wrap { position: relative; z-index: 4; margin-top: 18px; }
.avs-search { position: relative; display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 10px 12px 10px 19px; border: 1px solid var(--line); border-radius: 14px; background: #2a2221; }
.avs-search input { width: 100%; min-width: 0; min-height: 42px; padding: 0 8px; background: #211b1c; border: 1px solid #634b3e; border-radius: 8px; color: #fff5ec; }
.avs-search input::placeholder { color: #d5c2b3; }
.avs-search button { min-height: 42px; padding-block: 6px; }
.avs-search .search-dropdown { display: none; position: absolute; top: calc(100% + 6px); left: 0; right: 0; max-height: min(50vh, 440px); overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: #211b1c; box-shadow: 0 12px 30px #0008; }
.avs-search .sd-item { display: flex; align-items: center; gap: 10px; padding: 9px 14px; }
.avs-search .sd-item:hover, .avs-search .sd-active { background: #453027; }
.avs-search .sd-empty { padding: 12px 14px; color: var(--muted); }

.avs-section { padding-block: clamp(28px, 3vw, 50px); }
.avs-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 20px; margin-bottom: 17px; }
.avs-section-head h2, .avs-help h2 { margin: 0; font-size: clamp(24px, 2.2vw, 39px); line-height: 1.13; letter-spacing: -.035em; }
.avs-home .avs-section-head a, .avs-home .avs-read { color: var(--accent); font-weight: 650; }
.avs-section-head a:hover, .avs-read:hover { text-decoration: underline; }
.avs-categories { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.avs-category { display: grid; grid-template-columns: minmax(48px, 38%) minmax(0, 1fr); min-height: 82px; overflow: hidden; background: #2b2323; border: 1px solid var(--line); border-radius: 12px; }
.avs-category img { height: 100%; min-height: 0; object-fit: cover; }
.avs-category h3 { margin: 0; align-self: center; padding: 8px 9px; font-size: clamp(14px, 1vw, 17px); line-height: 1.23; overflow-wrap: anywhere; }
.avs-category:hover, .avs-guide:has(a:hover) { border-color: #cc8d57; background: #352925; }

.avs-help { display: grid; grid-template-columns: 34% 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #2a2120; }
.avs-help > img { height: 100%; max-height: 280px; min-height: 180px; object-fit: cover; }
.avs-help-copy { align-self: center; padding: clamp(18px, 3vw, 45px); }
.avs-help h2 { max-width: 23ch; }
.avs-help-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.avs-help-links a { padding: 8px 11px; border: 1px solid #87654f; border-radius: 8px; }
.avs-help-links a:hover { background: #3b2b25; color: var(--accent); }
.avs-help-links span { color: var(--accent); }

.avs-guides { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.avs-guide { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #2b2323; }
.avs-guide a { display: flex; flex-direction: column; height: 100%; }
.avs-guide a:focus-visible { outline-offset: -3px; }
.avs-guide img { aspect-ratio: 16 / 10; object-fit: cover; }
.avs-guide-copy { flex: 1; display: flex; flex-direction: column; padding: 14px; }
.avs-guide-copy > span:first-child { color: #f1b781; font-size: 12px; font-weight: 650; }
.avs-guide h3 { font-size: clamp(17px, 1.3vw, 22px); line-height: 1.22; margin: 7px 0; }
.avs-guide p { margin: 0 0 11px; font-size: 14px; color: var(--muted); }
.avs-read { margin-top: auto; font-size: 14px; }
.avs-more-title { margin: 24px 0 10px; font-size: 18px; }
.avs-more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 20px; list-style: none; padding: 0; margin: 0; }
.avs-more a { display: block; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.avs-more a:hover, .avs-more span { color: var(--accent); }
.avs-footer { border-top: 1px solid var(--line); background: #211b1b; }
.avs-footer-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 15px 26px; padding-block: 24px; }
.avs-footer p { margin: 0; color: var(--muted); font-size: 14px; }
.avs-footer nav { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; }

@media (max-width: 1350px) {
  .avs-categories { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .avs-category { grid-template-columns: minmax(48px, 34%) minmax(0, 1fr); }
  .avs-footer-row { grid-template-columns: auto 1fr; }
  .avs-footer nav { grid-column: 1 / -1; }
}

@media (max-width: 1090px) {
  .avs-categories { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .avs-guides { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .avs-hero-copy { width: 54%; }
}

@media (max-width: 960px) {
  .avs-categories { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .avs-header-row { min-height: 66px; }
  .avs-search-link { margin-left: auto; }
  .avs-menu { display: block; }
  .avs-nav { position: absolute; inset: 100% 0 auto; display: none; background: #211b1c; border-bottom: 1px solid var(--line); margin: 0; padding: 10px max(16px, 3vw); box-shadow: 0 12px 20px #0005; }
  .avs-nav.open { display: grid; gap: 2px; }
  .avs-nav a { padding: 10px; }
  .avs-hero { min-height: 390px; }
  .avs-hero h1 { font-size: clamp(43px, 6vw, 57px); }
}

@media (max-width: 760px) {
  .avs-hero { display: flex; flex-direction: column; align-items: stretch; min-height: 0; margin-top: 14px; border-radius: 18px; }
  .avs-hero::before { display: none; }
  .avs-hero-media { position: static; width: 100%; }
  .avs-hero-media img { aspect-ratio: 16 / 8; object-position: right 43%; }
  .avs-hero-copy { width: 100%; padding: 19px clamp(16px, 4vw, 30px) 23px; }
  .avs-hero h1 { font-size: clamp(38px, 8vw, 59px); }
  .avs-hero h1 span { display: inline; }
  .avs-hero p { margin: 14px 0 18px; max-width: 43ch; }
  .avs-categories { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .avs-more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .avs-guides { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .avs-header-row { gap: 9px; }
  .avs-brand { gap: 8px; }
  .avs-mark { width: 33px; height: 26px; }
  .avs-brand-text strong { font-size: clamp(14px, 4vw, 18px); }
  .avs-brand-text small { font-size: 9px; }
  .avs-search-link { display: none; }
  .avs-menu { margin-left: auto; }
  .avs-hero-media img { aspect-ratio: 16 / 9; }
  .avs-hero h1 span { display: block; }
  .avs-actions .avs-btn { padding-inline: 12px; font-size: 14px; }
  .avs-search { grid-template-columns: minmax(0, 1fr) auto; gap: 7px; padding: 8px; }
  .avs-search > .avs-lens { display: none; }
  .avs-search input { font-size: 16px; }
  .avs-search button { padding-inline: 10px; }
  .avs-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .avs-category { min-height: 67px; }
  .avs-category h3 { font-size: 13px; padding-inline: 6px; }
  .avs-help { grid-template-columns: 1fr; }
  .avs-help > img { min-height: 0; height: auto; aspect-ratio: 2.4; }
  .avs-guides { grid-template-columns: 1fr; }
  .avs-guide img { aspect-ratio: 16 / 8; }
  .avs-more, .avs-footer-row { grid-template-columns: 1fr; }
}
