/* AutoTaktas catalog (2026 redesign): company directory, search results and company cards.
   Brand: dark #101317 and yellow #ffc400. Cards are built from facts (phone, hours, Sodra, age, size), not photos. */

@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800; src: url("fonts/manrope-latin-wght-normal.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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800; src: url("fonts/manrope-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("fonts/archivo-latin-wght-normal.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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("fonts/archivo-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --atx-dark: #101317;
  --atx-yellow: #ffc400;
  --atx-yellow-soft: #fff4cc;
  --atx-yellow-ink: #5c4600;
  --atx-ink: #14171c;
  --atx-muted: #5b636e;
  --atx-faint: #868e98;
  --atx-line: #e4e7eb;
  --atx-ground: #f3f4f6;
  --atx-card: #ffffff;
  --atx-good: #17703f;
  --atx-good-soft: #e2f3e8;
  --atx-bad: #b42318;
  --atx-display: "Archivo", "Segoe UI", system-ui, sans-serif;
  --atx-body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --atx-ease: cubic-bezier(.32, .72, 0, 1);
  --atx-shadow: 0 1px 2px rgba(16, 19, 23, .04), 0 10px 30px -18px rgba(16, 19, 23, .22);
  --atx-shadow-hover: 0 2px 4px rgba(16, 19, 23, .05), 0 22px 44px -22px rgba(16, 19, 23, .32);
}

.atx-dir { background: var(--atx-ground); color: var(--atx-ink); font-family: var(--atx-body); font-size: 16px; line-height: 1.6; padding: 36px 0 96px; }
.atx-dir *, .atx-dir *::before, .atx-dir *::after { box-sizing: border-box; }
.atx-wrap { width: min(calc(100% - 48px), var(--at-shell, 1600px)); margin-inline: auto; }
.atx-dir a { color: inherit; }
.atx-dir :focus-visible { outline: 3px solid var(--atx-yellow); outline-offset: 2px; border-radius: 8px; }

/* The old theme forces its system font on every heading and control with !important; the catalog uses its own pair. */
body.autotaktas-prototype .atx-dir :is(h1, h2, h3) { font-family: var(--atx-display) !important; hyphens: manual; overflow-wrap: break-word; text-wrap: wrap; }
body.autotaktas-prototype .atx-dir h1 { font-weight: 800 !important; letter-spacing: -.025em !important; }
body.autotaktas-prototype .atx-dir :is(button, input, select, textarea) { font-family: var(--atx-body) !important; }

/* ---------- Heading ---------- */
.atx-dir-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 40px; margin-bottom: 22px; }
.atx-dir-title { flex: 1 1 auto; min-width: 0; }
.atx-dir h1 { font-family: var(--atx-display); font-weight: 800; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.06; letter-spacing: -.025em; margin: 0 0 12px; color: var(--atx-ink); }
.atx-lead { color: var(--atx-muted); font-size: 16.5px; margin: 0; }
.atx-count { margin: 0; color: var(--atx-muted); font-size: 15px; white-space: nowrap; }
.atx-count strong { font-family: var(--atx-display); font-size: 30px; font-weight: 800; color: var(--atx-ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-right: 4px; }

/* Cover band: the category photo on the right, the heading on the dark side. */
.atx-hero { position: relative; isolation: isolate; overflow: hidden; align-items: flex-end; min-height: 320px; padding: 48px 48px 40px; border-radius: 28px; background: var(--atx-dark); color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); margin-bottom: 26px; }
.atx-cover { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.atx-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(16, 19, 23, .96) 0%, rgba(16, 19, 23, .86) 38%, rgba(16, 19, 23, .25) 78%, rgba(16, 19, 23, .1) 100%); }
.atx-hero .atx-dir-title { max-width: 860px; }
.atx-dir .atx-hero h1 { color: #fff; }
.atx-hero .atx-lead { color: #c3cad3; max-width: 70ch; }
.atx-hero .atx-count { color: #c3cad3; align-self: flex-end; }
.atx-hero .atx-count strong { color: var(--atx-yellow); }

/* ---------- Related activities and cities ---------- */
.atx-related { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 0 0 18px; font-size: 14.5px; }
.atx-related-label { color: var(--atx-faint); font-weight: 600; }
.atx-related a { font-weight: 700; text-decoration: underline; text-decoration-color: rgba(255, 196, 0, .8); text-decoration-thickness: 2px; text-underline-offset: 4px; transition: text-decoration-color .3s var(--atx-ease); }
.atx-related a:hover { text-decoration-color: var(--atx-ink); }

.atx-scroller { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 4px; margin: 0 -2px 18px;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); }
.atx-scroller::-webkit-scrollbar { display: none; }
.atx-scroller.is-end { -webkit-mask-image: none; mask-image: none; }
.atx-tab { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--atx-card); box-shadow: inset 0 0 0 1px var(--atx-line);
  font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; transition: background-color .35s var(--atx-ease), color .35s var(--atx-ease), transform .35s var(--atx-ease); }
.atx-tab small { color: var(--atx-faint); font-weight: 600; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.atx-tab:hover { transform: translateY(-1px); }
.atx-tab.is-on { background: var(--atx-dark); color: #fff; box-shadow: none; }
.atx-tab.is-on small { color: var(--atx-yellow); }

/* ---------- Toolbar: quick filters, all filters, sort ---------- */
.atx-toolbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px 20px; margin-bottom: 18px; flex-wrap: wrap; }
.atx-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex: 1 1 600px; min-width: 0; }
.atx-pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: transparent; box-shadow: inset 0 0 0 1px #cfd4da;
  font-size: 13.5px; font-weight: 700; color: var(--atx-ink); text-decoration: none; cursor: pointer; list-style: none; user-select: none;
  transition: background-color .35s var(--atx-ease), box-shadow .35s var(--atx-ease), transform .2s var(--atx-ease); }
.atx-pill::-webkit-details-marker { display: none; }
.atx-pill:hover { background: var(--atx-card); box-shadow: inset 0 0 0 1px #aab1ba; }
.atx-pill:active { transform: scale(.97); }
.atx-pill.is-on { background: var(--atx-yellow); box-shadow: none; }
.atx-pill b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--atx-dark); color: var(--atx-yellow); font-size: 11.5px; }
.atx-more { display: contents; }
.atx-more[open] > summary { background: var(--atx-dark); color: #fff; box-shadow: none; }
.atx-more-panel { order: 10; flex: 1 1 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 20px; margin-top: 4px; background: var(--atx-card); border-radius: 18px; box-shadow: var(--atx-shadow); }
.atx-field { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: var(--atx-muted); min-width: 0; }
.atx-field input, .atx-field select, .atx-sort select { width: 100%; font: 600 14.5px var(--atx-body); color: var(--atx-ink); background: var(--atx-ground); border: 0; border-radius: 12px; padding: 11px 14px; box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .3s var(--atx-ease), background-color .3s var(--atx-ease); }
.atx-field input:focus, .atx-field select:focus, .atx-sort select:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 2px var(--atx-yellow); }
.atx-checks { grid-column: 1 / -1; border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14.5px; font-weight: 600; }
.atx-checks legend { font-size: 13px; font-weight: 700; color: var(--atx-muted); margin-bottom: 8px; padding: 0; }
.atx-checks label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.atx-checks input { width: 18px; height: 18px; accent-color: var(--atx-dark); }
.atx-more-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; }
.atx-link { font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #c5cad1; }
.atx-link:hover { text-decoration-color: var(--atx-ink); }
.atx-clear { margin-left: 4px; }
.atx-more-close { display: none; background: none; border: 0; cursor: pointer; font-family: var(--atx-body); color: var(--atx-ink); }
.atx-sort label { display: block; }
.atx-sort select { width: auto; min-width: 200px; background-color: var(--atx-card); box-shadow: inset 0 0 0 1px var(--atx-line); border-radius: 999px; padding: 9px 38px 9px 16px; font-size: 13.5px; cursor: pointer;
  appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2314171c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; }

/* ---------- Layout ---------- */
.atx-dir-grid { display: grid; grid-template-columns: minmax(0, 1fr) 336px; gap: 28px; align-items: start; }
.atx-results { display: grid; gap: 14px; min-width: 0; }
.atx-side { display: grid; gap: 20px; position: sticky; top: 24px; }

/* ---------- Company card ---------- */
.atx-card { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 18px 20px; align-items: start; padding: 20px; background: var(--atx-card); border-radius: 20px; box-shadow: var(--atx-shadow);
  transition: transform .5s var(--atx-ease), box-shadow .5s var(--atx-ease); }
.atx-card:hover { transform: translateY(-2px); box-shadow: var(--atx-shadow-hover); }
.atx-dir .atx-mono { position: relative; width: 88px; height: 88px; border-radius: 20px; background: var(--atx-dark); color: var(--atx-yellow); display: grid; place-items: center; overflow: hidden; text-decoration: none;
  font-family: var(--atx-display); font-weight: 800; font-size: 22px; letter-spacing: -.04em; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.atx-dir .atx-card:nth-child(3n+2) .atx-mono:not(.has-image) { background: var(--atx-yellow-soft); color: var(--atx-yellow-ink); box-shadow: inset 0 0 0 1px rgba(92, 70, 0, .08); }
.atx-dir .atx-mono.has-image { background: #fff; box-shadow: inset 0 0 0 1px var(--atx-line); }
.atx-mono.has-image span { visibility: hidden; }
.atx-mono img { position: absolute; inset: 0; width: 100%; height: 100%; }
.atx-mono img.is-logo { object-fit: contain; padding: 8px; }
.atx-mono img.is-photo, .atx-mono img.is-cover { object-fit: cover; }
.atx-mono img.is-cover { transition: transform .8s var(--atx-ease); }
.atx-card:hover .atx-mono img.is-cover { transform: scale(1.06); }
.atx-dir .atx-mono:has(img.is-cover) { background: var(--atx-dark); box-shadow: inset 0 0 0 1px rgba(16, 19, 23, .08); }
.atx-card-main { min-width: 0; }
.atx-card-title { font-family: var(--atx-display); font-size: 19px; font-weight: 700; line-height: 1.25; letter-spacing: -.012em; margin: 2px 0 4px; overflow-wrap: anywhere; }
.atx-card-title a { text-decoration: none; background-image: linear-gradient(var(--atx-yellow), var(--atx-yellow)); background-size: 0 2px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .5s var(--atx-ease); }
.atx-card-title a:hover { background-size: 100% 2px; }
.atx-card-title a::after { content: ""; position: absolute; inset: 0; border-radius: 20px; }
.atx-card { position: relative; }
.atx-card-sub { margin: 0 0 2px; font-size: 14px; font-weight: 600; color: var(--atx-muted); }
.atx-card-sub a { position: relative; z-index: 1; text-decoration: none; }
.atx-card-sub a:hover { color: var(--atx-ink); text-decoration: underline; text-decoration-color: var(--atx-yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.atx-card-address { margin: 0; font-size: 14px; color: var(--atx-faint); overflow-wrap: anywhere; }
.atx-card-tags { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 6px 0 0; font-size: 13px; }
.atx-card-tags a { color: var(--atx-muted) !important; text-decoration: none; }
.atx-card-tags a::before { content: "#"; color: var(--atx-yellow-ink); opacity: .55; margin-right: 1px; }
.atx-card-tags a:hover { color: var(--atx-ink) !important; text-decoration: underline; text-decoration-color: var(--atx-yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.atx-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.atx-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #f1f3f5; color: #3a414a; font-size: 12.5px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.atx-chip small { font-size: inherit; color: var(--atx-faint); font-weight: 600; }
.atx-chip--trust { background: var(--atx-yellow-soft); color: var(--atx-yellow-ink); }
.atx-chip--rating { background: var(--atx-dark); color: #fff; }
.atx-chip--hours::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--atx-faint); }
.atx-chip--hours.is-open { background: var(--atx-good-soft); color: var(--atx-good); }
.atx-chip--hours.is-open::before { background: var(--atx-good); box-shadow: 0 0 0 3px rgba(23, 112, 63, .18); }
.atx-chip--hours.is-closed::before { background: var(--atx-bad); }
.atx-card-actions { position: relative; z-index: 1; display: grid; gap: 8px; justify-items: stretch; min-width: 196px; }
.atx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 999px; font: 700 14px/1.2 var(--atx-body); text-decoration: none; white-space: nowrap; cursor: pointer; border: 0;
  transition: transform .2s var(--atx-ease), background-color .35s var(--atx-ease), box-shadow .35s var(--atx-ease); }
.atx-btn:active { transform: scale(.98); }
.atx-btn svg, .atx-btn i { width: 16px; height: 16px; flex: 0 0 auto; }
.atx-btn--primary { background: var(--atx-yellow); color: var(--atx-dark) !important; font-variant-numeric: tabular-nums; }
.atx-btn--primary:hover { background: #ffd23d; }
.atx-btn--ghost { background: transparent; color: var(--atx-ink); box-shadow: inset 0 0 0 1px #cfd4da; padding-right: 8px; justify-content: space-between; }
.atx-btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--atx-ink); }
.atx-btn-dot { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--atx-ground); font-size: 13px; transition: transform .45s var(--atx-ease), background-color .35s var(--atx-ease); }
.atx-btn--ghost:hover .atx-btn-dot { transform: translateX(2px); background: var(--atx-yellow); }
.atx-card-web { font-size: 13px; font-weight: 700; color: var(--atx-muted) !important; text-align: center; text-decoration: none; padding: 2px 0; }
.atx-card-web:hover { color: var(--atx-ink) !important; text-decoration: underline; }

.atx-empty { background: var(--atx-card); border-radius: 20px; padding: 40px 28px; text-align: center; box-shadow: var(--atx-shadow); }
.atx-empty h2 { font: 800 24px/1.2 var(--atx-display); margin: 0 0 6px; }
.atx-empty p { color: var(--atx-muted); margin: 0 0 18px; }

/* ---------- Pagination ---------- */
.atx-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 18px; }
.atx-pagination:empty { display: none; }
.atx-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 999px; background: var(--atx-card); box-shadow: inset 0 0 0 1px var(--atx-line);
  font-weight: 700; font-size: 14.5px; text-decoration: none; font-variant-numeric: tabular-nums; transition: background-color .3s var(--atx-ease), transform .2s var(--atx-ease); }
.atx-pagination a.page-numbers:hover { background: var(--atx-yellow-soft); }
.atx-pagination a.page-numbers:active { transform: scale(.96); }
.atx-pagination .current { background: var(--atx-dark); color: #fff; box-shadow: none; }
.atx-pagination .dots { background: transparent; box-shadow: none; }

/* ---------- Sidebar ---------- */
.atx-panel { background: var(--atx-card); border-radius: 20px; padding: 18px; box-shadow: var(--atx-shadow); }
.atx-panel h2 { font: 800 16px var(--atx-display); margin: 0 0 8px; padding: 0 8px; letter-spacing: -.01em; }
.atx-panel a { display: flex; justify-content: space-between; gap: 12px; padding: 8px; border-radius: 10px; font-size: 14px; font-weight: 600; text-decoration: none; transition: background-color .3s var(--atx-ease); }
.atx-panel a small { color: var(--atx-faint); font-variant-numeric: tabular-nums; }
.atx-panel a:hover { background: var(--atx-ground); }
.atx-panel a.is-on { background: var(--atx-dark); color: #fff; }
.atx-panel a.is-on small { color: var(--atx-yellow); }
.atx-side-ad:empty { display: none; }
.atx-promo { position: relative; display: block; overflow: hidden; border-radius: 22px; background: var(--atx-dark); color: #fff !important; text-decoration: none; aspect-ratio: 2 / 3; max-height: 520px; width: 100%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06) inset, var(--atx-shadow); isolation: isolate; }
.atx-promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transform: scale(1.01); transition: transform 1.2s var(--atx-ease); }
.atx-promo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(16, 19, 23, .72) 0%, rgba(16, 19, 23, .2) 52%, rgba(16, 19, 23, .55) 100%); }
.atx-promo:hover img { transform: scale(1.05); }
.atx-promo-copy { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 10px; padding: 26px 24px; }
.atx-promo-copy strong { font: 800 27px/1.08 var(--atx-display); letter-spacing: -.02em; }
.atx-promo-copy em { font-style: normal; color: var(--atx-yellow); }
.atx-promo-copy > span:not(.atx-promo-btn) { font-size: 14.5px; line-height: 1.5; color: #c9d0d8; max-width: 26ch; }
.atx-promo-btn { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; padding: 7px 7px 7px 16px; border-radius: 999px; background: var(--atx-yellow); color: var(--atx-dark); font-weight: 800; font-size: 14px; }
.atx-promo-btn span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(16, 19, 23, .12); transition: transform .45s var(--atx-ease); }
.atx-promo:hover .atx-promo-btn span { transform: translateX(3px); }
.atx-side-ad .at-setupad { margin: 0; }

/* ---------- All activities (/imones/) ---------- */
.atx-index { margin-top: 72px; }
.atx-index h2 { font: 800 clamp(26px, 2.6vw, 34px)/1.1 var(--atx-display); letter-spacing: -.02em; margin: 0 0 8px; }
.atx-index-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-top: 24px; }
.atx-index-group { background: var(--atx-card); border-radius: 20px; padding: 18px; box-shadow: var(--atx-shadow); }
.atx-index-title { display: flex; justify-content: space-between; gap: 12px; font: 700 17px/1.3 var(--atx-display); text-decoration: none; margin-bottom: 8px; }
.atx-index-title small { font: 700 13px var(--atx-body); color: var(--atx-yellow-ink); background: var(--atx-yellow-soft); border-radius: 999px; padding: 2px 9px; align-self: center; font-variant-numeric: tabular-nums; }
.atx-index-group nav { display: grid; }
.atx-index-group nav a { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: 14px; color: var(--atx-muted); text-decoration: none; border-top: 1px solid #f0f2f4; }
.atx-index-group nav a:hover { color: var(--atx-ink); }
.atx-index-group nav small { color: var(--atx-faint); font-variant-numeric: tabular-nums; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .atx-dir-grid { grid-template-columns: minmax(0, 1fr); }
  .atx-side { position: static; grid-template-columns: minmax(0, 1fr); }
  .atx-panel { display: none; }
  .atx-promo { aspect-ratio: 16 / 9; max-height: 300px; }
  .atx-promo::after { background: linear-gradient(90deg, rgba(16, 19, 23, .85) 0%, rgba(16, 19, 23, .35) 70%); }
}
@media (max-width: 760px) {
  .atx-dir { padding: 22px 0 64px; }
  .atx-wrap { width: calc(100% - 32px); }
  .atx-dir-head { flex-direction: column; align-items: flex-start; margin-bottom: 16px; }
  .atx-hero { min-height: 0; padding: 150px 20px 22px; border-radius: 22px; margin-inline: -4px; }
  .atx-hero::before { background: linear-gradient(180deg, rgba(16, 19, 23, .05) 0%, rgba(16, 19, 23, .7) 40%, rgba(16, 19, 23, .97) 70%); }
  .atx-cover { height: 62%; object-position: 70% 40%; }
  .atx-hero .atx-count { align-self: flex-start; }
  .atx-count strong { font-size: 24px; }
  .atx-pills { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 4px; flex-basis: 100%; }
  .atx-pills::-webkit-scrollbar { display: none; }
  .atx-pill { flex: 0 0 auto; white-space: nowrap; }
  .atx-related { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 16px; padding: 0 16px 6px; white-space: nowrap; }
  .atx-related::-webkit-scrollbar { display: none; }
  .atx-related a { flex: 0 0 auto; }
  .atx-more[open] > .atx-more-panel { position: fixed; inset: auto 0 0 0; z-index: 1000; margin: 0; border-radius: 22px 22px 0 0; max-height: 82vh; overflow-y: auto;
    grid-template-columns: minmax(0, 1fr); padding: 22px 16px calc(22px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -20px 60px rgba(16, 19, 23, .28); }
  .atx-more-close { display: inline; margin-left: auto; }
  .atx-sort { width: 100%; }
  .atx-sort select { width: 100%; }
  .atx-card { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; padding: 16px; border-radius: 18px; }
  .atx-dir .atx-mono { width: 64px; height: 64px; border-radius: 16px; font-size: 18px; }
  .atx-card-title { font-size: 17.5px; }
  .atx-card-actions { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) auto; min-width: 0; }
  .atx-card-actions .atx-btn--primary { min-width: 0; overflow: hidden; }
  .atx-card-actions .atx-btn--primary span { overflow: hidden; text-overflow: ellipsis; }
  .atx-card-web { grid-column: 1 / -1; }
  .atx-index { margin-top: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .atx-dir *, .atx-dir *::before, .atx-dir *::after { transition: none !important; }
}

/* ---------- Front page (2026 redesign) ---------- */
.atx-home { padding-top: 28px; }
.atx-home-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px; min-height: 520px; padding: 64px 56px 48px; }
.atx-home-hero .atx-cover { object-position: 80% 50%; }
.atx-home-hero::before { background: linear-gradient(90deg, rgba(16, 19, 23, .97) 0%, rgba(16, 19, 23, .88) 40%, rgba(16, 19, 23, .3) 75%, rgba(16, 19, 23, .15) 100%); }
.atx-home-hero-copy { max-width: 760px; min-width: 0; }
.atx-dir.atx-home .atx-home-hero h1 { color: #fff; font-size: clamp(36px, 4.6vw, 64px); line-height: 1.02; margin-bottom: 16px; }
.atx-home-hero .atx-lead { color: #c3cad3; font-size: 18px; max-width: 56ch; }
.atx-search { display: flex; align-items: center; gap: 6px; margin-top: 28px; padding: 6px; border-radius: 999px; background: #fff; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .6); max-width: 720px; }
.atx-search-field { flex: 1 1 auto; min-width: 0; }
.atx-search input, .atx-search select { width: 100%; border: 0; background: transparent; font: 600 15.5px var(--atx-body); color: var(--atx-ink); padding: 12px 18px; outline: none; }
.atx-search-city { flex: 0 0 190px; border-left: 1px solid var(--atx-line); }
.atx-search select { appearance: none; cursor: pointer; padding-right: 34px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2314171c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center; }
.atx-search .atx-btn { padding: 8px 8px 8px 22px; font-size: 15px; }
.atx-search .atx-btn .atx-btn-dot { background: rgba(16, 19, 23, .12); }
.atx-search:focus-within { box-shadow: 0 0 0 3px rgba(255, 196, 0, .55), 0 20px 50px -20px rgba(0, 0, 0, .6); }
.atx-home-popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 18px; font-size: 14px; color: #9aa3ad; }
.atx-home-popular a { color: #fff !important; font-weight: 700; text-decoration: none; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); transition: background-color .35s var(--atx-ease); }
.atx-home-popular a:hover { background: rgba(255, 196, 0, .2); }
.atx-home-stats { display: grid; gap: 10px; margin: 0; }
.atx-home-stats div { padding: 14px 18px; border-radius: 16px; background: rgba(16, 19, 23, .6); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); min-width: 210px; }
.atx-home-stats dt { font-size: 12.5px; color: #9aa3ad; font-weight: 600; }
.atx-home-stats dd { margin: 2px 0 0; font: 800 28px/1.1 var(--atx-display); color: var(--atx-yellow); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }

.atx-home-section { margin-top: 72px; }
.atx-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.atx-dir .atx-section-head h2 { font: 800 clamp(26px, 2.6vw, 36px)/1.1 var(--atx-display) !important; letter-spacing: -.02em; margin: 0; }

.atx-cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.atx-cat { background: var(--atx-card); border-radius: 22px; overflow: hidden; box-shadow: var(--atx-shadow); display: flex; flex-direction: column; transition: transform .5s var(--atx-ease), box-shadow .5s var(--atx-ease); }
.atx-cat:hover { transform: translateY(-3px); box-shadow: var(--atx-shadow-hover); }
.atx-cat-main { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--atx-dark); color: #fff !important; text-decoration: none; isolation: isolate; }
.atx-cat-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--atx-ease); }
.atx-cat-main::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(16, 19, 23, 0) 30%, rgba(16, 19, 23, .9) 100%); }
.atx-cat:hover .atx-cat-main img { transform: scale(1.06); }
.atx-cat-name { position: absolute; left: 18px; right: 60px; bottom: 16px; display: grid; gap: 2px; }
.atx-cat-name strong { font: 700 18px/1.2 var(--atx-display); letter-spacing: -.01em; }
.atx-cat-name small { color: var(--atx-yellow); font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }
.atx-cat-go { position: absolute; right: 16px; bottom: 18px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--atx-yellow); color: var(--atx-dark); font-weight: 800; transition: transform .45s var(--atx-ease); }
.atx-cat:hover .atx-cat-go { transform: translateX(3px); }
.atx-cat nav { display: grid; padding: 8px 18px 14px; }
.atx-cat nav a { padding: 7px 0; font-size: 14px; font-weight: 600; color: var(--atx-muted) !important; text-decoration: none; border-top: 1px solid #f0f2f4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.atx-cat nav a:first-child { border-top: 0; }
.atx-cat nav a:hover { color: var(--atx-ink) !important; }

.atx-home .at-setupad--leaderboard { margin: 56px auto 0; }

.atx-posts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.atx-post { display: flex; flex-direction: column; background: var(--atx-card); border-radius: 20px; overflow: hidden; box-shadow: var(--atx-shadow); transition: transform .5s var(--atx-ease), box-shadow .5s var(--atx-ease); }
.atx-post:hover { transform: translateY(-3px); box-shadow: var(--atx-shadow-hover); }
.atx-post-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--atx-line); }
.atx-post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--atx-ease); }
.atx-post:hover .atx-post-img img { transform: scale(1.05); }
.atx-post-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.atx-dir .atx-post h3 { font: 700 17px/1.3 var(--atx-display) !important; margin: 0; letter-spacing: -.01em; }
.atx-post h3 a { text-decoration: none; }
.atx-post h3 a:hover { text-decoration: underline; text-decoration-color: var(--atx-yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.atx-post-meta { margin: auto 0 0; font-size: 13px; color: var(--atx-faint); font-weight: 600; }
.atx-post--big { grid-column: span 2; grid-row: span 2; position: relative; isolation: isolate; color: #fff; background: var(--atx-dark); }
.atx-post--big .atx-post-img { position: absolute; inset: 0; aspect-ratio: auto; z-index: -2; }
.atx-post--big::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(16, 19, 23, .05) 35%, rgba(16, 19, 23, .92) 100%); pointer-events: none; }
.atx-post--big .atx-post-body { justify-content: flex-end; padding: 28px; min-height: 420px; }
.atx-dir .atx-post--big h3 { font-size: clamp(22px, 2.2vw, 32px) !important; line-height: 1.15; }
.atx-post--big h3 a { color: #fff !important; }
.atx-post--big .atx-post-meta { margin: 0; color: #c3cad3; }

.atx-home-companies { display: grid; grid-template-columns: minmax(0, 1fr) 336px; gap: 28px; align-items: start; }
.atx-home-specs { margin-top: 72px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 40px 44px; border-radius: 28px; background: var(--atx-dark); color: #fff;
  background-image: radial-gradient(circle at 85% 30%, rgba(255, 196, 0, .16), transparent 45%); }
.atx-dir .atx-home-specs h2 { font: 800 clamp(24px, 2.4vw, 32px)/1.1 var(--atx-display) !important; color: #fff; margin: 0 0 6px; }
.atx-home-specs p { margin: 0; color: #c3cad3; max-width: 60ch; }
.atx-home-specs .atx-btn { padding: 8px 8px 8px 20px; }
.atx-home-specs .atx-btn-dot { background: rgba(16, 19, 23, .12); }

@media (max-width: 1100px) {
  .atx-home-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .atx-home-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .atx-home-stats div { min-width: 0; }
  .atx-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .atx-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .atx-home-companies { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .atx-home { padding-top: 14px; }
  .atx-home-hero { padding: 170px 20px 22px; gap: 20px; }
  .atx-home-hero .atx-cover { height: 55%; }
  .atx-dir.atx-home .atx-home-hero h1 { font-size: 34px; }
  .atx-home-hero .atx-lead { font-size: 16px; }
  .atx-search { flex-direction: column; align-items: stretch; border-radius: 20px; padding: 8px; }
  .atx-search-city { flex: 0 0 auto; border-left: 0; border-top: 1px solid var(--atx-line); }
  .atx-search .atx-btn { justify-content: space-between; }
  .atx-home-stats { grid-template-columns: minmax(0, 1fr); }
  .atx-home-stats div { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 14px; }
  .atx-home-stats dd { font-size: 22px; }
  .atx-home-section { margin-top: 48px; }
  .atx-cats { grid-template-columns: minmax(0, 1fr); }
  .atx-posts { grid-template-columns: minmax(0, 1fr); }
  .atx-post--big { grid-column: auto; grid-row: auto; }
  .atx-post--big .atx-post-body { min-height: 320px; padding: 20px; }
  .atx-home-specs { padding: 28px 22px; margin-top: 48px; }
}
