.atlas-app .provider-directory-hero {
  padding-block: 19px 18px;
  background: linear-gradient(125deg, #fff 0%, #f5f8ff 58%, #fff7f4 100%);
}

.atlas-app .provider-directory-hero .breadcrumbs { margin-bottom: 14px; }
.atlas-app .provider-directory-hero .public-hero-grid h1 {
  font-size: clamp(28px, 3.2vw, 42px);
  
}

.atlas-app .provider-directory-section {
  padding: 28px 0 56px;
  background:
    radial-gradient(460px circle at 140px 20px, rgba(255, 90, 95, .08), rgba(255, 90, 95, 0)),
    radial-gradient(520px circle at calc(100% - 100px) 100%, rgba(59, 108, 246, .09), rgba(59, 108, 246, 0)),
    linear-gradient(135deg, #f6f8fd, #e9eef8);
}

.atlas-app .provider-directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 24px;
  max-width: 1680px;
  margin-inline: auto;
}

.atlas-app .provider-directory-card {
  --bw: 1px;
  --place-start: #aeb9ca;
  --place-end: #8491a8;
  --place-wash: #edf1f7;
  --place-glow: rgba(83, 99, 124, .2);
  container: provider-card / inline-size;
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 555px;
  height: 100%;
  flex-direction: column;
  padding: calc(28px - var(--bw));
  border: var(--bw) solid #e2e7f0;
  border-radius: 28px;
  background: linear-gradient(180deg, var(--place-wash), #fff 150px);
  box-shadow: 0 18px 44px rgba(30, 42, 74, .1);
  color: #111827;
  font-family: Manrope, Roboto, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  transition: transform .25s ease, box-shadow .25s ease;
}

.atlas-app .provider-directory-card[data-place="1"] {
  --bw: 2px;
  --place-start: #ffd25e;
  --place-end: #f29a0b;
  --place-wash: #fff0c7;
  --place-glow: rgba(242, 154, 11, .35);
  background: linear-gradient(180deg, var(--place-wash), #fff 150px);
}

.atlas-app .provider-directory-card[data-place="2"] {
  --place-start: #c6d0df;
  --place-end: #8491a8;
  --place-wash: #e8edf6;
  --place-glow: rgba(132, 145, 168, .35);
}

.atlas-app .provider-directory-card[data-place="3"] {
  --place-start: #edb48d;
  --place-end: #bf7144;
  --place-wash: #fbe6d8;
  --place-glow: rgba(191, 113, 68, .35);
}

@media (hover: hover) {
  .atlas-app .provider-directory-card:hover { transform: translateY(-4px); box-shadow: 0 26px 56px rgba(30, 42, 74, .15); }
}

.atlas-app .provider-card-topline {
  display: flex;
  min-height: 72px;
  align-items: center;
  gap: 18px;
}

.atlas-app .provider-directory-brand {
  --logo-size: 72px;
  display: flex;
  width: var(--logo-size);
  height: var(--logo-size);
  flex: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 9px;
  border: 1px solid #e4e9f2;
  border-radius: calc(var(--logo-size) * .28);
  background: #fff;
  box-shadow: 0 5px 12px rgba(30, 42, 74, .09);
}

.atlas-app .provider-directory-brand > img { display: block; width: 78%; height: 78%; border: 0; border-radius: 0; object-fit: contain; background: transparent; }
.atlas-app .provider-directory-logo-fallback { display: flex; width: 78%; height: 78%; align-items: center; justify-content: center; color: #64748b; }
.atlas-app .provider-directory-logo-fallback svg { width: 31px; height: 31px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.atlas-app .provider-card-name { flex: 1; min-width: 0; margin: 0; color: #111827; font-size: 27px; font-weight: 800; line-height: 1.15;  overflow-wrap: anywhere; }

.atlas-app .provider-directory-position {
  display: flex;
  width: 60px;
  min-width: 60px;
  height: 72px;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding-top: 2px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--place-start), var(--place-end));
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.45), 0 8px 14px var(--place-glow);
  color: #fff;
  font-size: 32px;
  line-height: 1;
}

.atlas-app .provider-directory-position small { margin-right: -1px; color: #fff; font-size: 9px; font-weight: 800; line-height: 1;  text-transform: uppercase; }
.atlas-app .provider-directory-position b { color: #fff; font-size: 32px; font-weight: 800; line-height: 1; }

.atlas-app .provider-directory-metrics {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.atlas-app .provider-directory-metric {
  display: flex;
  min-width: 0;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid #ebeff5;
  border-radius: 18px;
  background: #f5f7fb;
}

.atlas-app .provider-metric-body { display: flex; min-width: 0; flex-direction: column; gap: 5px; }
.atlas-app .provider-metric-label { color: #8a94a6; font-size: 10px; font-weight: 700; line-height: 14px;  text-transform: uppercase; }
.atlas-app .provider-metric-value { color: #111827; font-size: 27px; font-weight: 800; line-height: 1.15;  white-space: nowrap; }
.atlas-app .provider-metric-value small { margin-left: 2px; color: #8a94a6; font-size: 13px; font-weight: 600;  }
.atlas-app .provider-metric-value--empty { color: #778296; font-size: 16px; font-weight: 650;  white-space: normal; }

.atlas-app .provider-rating-stars {
  --star-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 23.333 20'%3E%3Cpath d='M10 1.5l2.6 5.4 5.9.8-4.3 4.1 1 5.9L10 14.9l-5.2 2.8 1-5.9-4.3-4.1 5.9-.8z' stroke='%23000' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E");
  display: block;
  width: 85px;
  height: 15px;
  flex: none;
  align-self: flex-end;
  margin-bottom: 7px;
  background: linear-gradient(90deg, #ffb020 calc(var(--rating) * 17.5px), #dde2eb 0);
  -webkit-mask: var(--star-mask) 0 0 / 17.5px 15px repeat-x;
  mask: var(--star-mask) 0 0 / 17.5px 15px repeat-x;
}

@supports (width: round(down, 1px, 1px)) {
  .atlas-app .provider-rating-stars {
    --full-stars: round(down, var(--rating), 1);
    background: linear-gradient(90deg, #ffb020 calc(var(--full-stars) * 17.5px + .6px + (var(--rating) - var(--full-stars)) * 13.8px), #dde2eb 0);
  }
}

.atlas-app .provider-directory-count-icon {
  display: flex;
  width: 40px;
  height: 40px;
  flex: none;
  align-items: center;
  justify-content: center;
  border: 1px solid #e4e9f2;
  border-radius: 50%;
  background: #fff;
  color: #f0465a;
}

.atlas-app .provider-directory-count-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.atlas-app .provider-directory-countries,
.atlas-app .provider-directory-service-group { margin-top: 20px; }

.atlas-app .provider-directory-detail-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #6b7588;
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
}

.atlas-app .provider-directory-detail-label svg { width: 16px; height: 16px; flex: none; fill: none; stroke: #8a94a6; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.atlas-app .provider-country-list { display: flex; min-width: 0; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.atlas-app .provider-country-tag { display: inline-flex; max-width: 100%; min-height: 38px; align-items: center; gap: 8px; overflow: hidden; padding: 0 16px 0 8px; border: 1px solid #dfe5ee; border-radius: 999px; background: #fff; color: #1f2937; font-size: 13px; font-weight: 600; white-space: nowrap; }
.atlas-app img.provider-country-flag { display: block; width: 20px; height: 20px; flex: none; border: 0; border-radius: 50%; object-fit: cover; box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .14); }
.atlas-app .provider-country-tag > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.atlas-app .provider-country-empty { display: inline-flex; min-height: 38px; align-items: center; padding: 0 16px; border: 1px dashed #c9d1de; border-radius: 999px; background: #fafbfd; color: #8a94a6; font-size: 13px; font-weight: 500; }
.atlas-app .provider-country-more { position: relative; }
.atlas-app .provider-country-more summary { display: grid; min-width: 34px; min-height: 34px; place-items: center; padding: 4px 9px; border: 1px solid #dfe5ee; border-radius: 999px; background: #fff; color: #52657d; font-size: 13px; font-weight: 700; cursor: pointer; list-style: none; }
.atlas-app .provider-country-more summary::-webkit-details-marker { display: none; }
.atlas-app .provider-country-popover { position: absolute; z-index: 4; top: calc(100% + 6px); right: 0; display: grid; width: max-content; max-width: min(270px, 75vw); gap: 6px; padding: 8px; border: 1px solid #dbe3ee; border-radius: 12px; background: #fff; box-shadow: 0 8px 24px rgba(32, 55, 92, .13); }

.atlas-app .provider-card-categories { display: flex; min-height: 38px; flex-wrap: wrap; align-content: flex-start; align-items: flex-start; gap: 8px; margin-top: 10px; }
.atlas-app .provider-category-tag { display: inline-flex; min-height: 38px; align-items: center; gap: 7px; padding: 0 14px 0 12px; border: 1px solid transparent; border-radius: 999px; font-size: 13px; font-weight: 700; line-height: 1; white-space: nowrap; }
.atlas-app .provider-category-tag svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.atlas-app .provider-category-tag[data-category="vps"] { background: #eaf1ff; color: #2f5bea; }
.atlas-app .provider-category-tag[data-category="shared"] { background: #f1ecff; color: #6a42dd; }
.atlas-app .provider-category-tag[data-category="dedicated"] { background: #e4f7f1; color: #0b8a70; }

.atlas-app .provider-cheapest-details {
  min-width: 0;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid #e3e8f0;
  border-radius: 16px;
  background: #f8f9fc;
}

.atlas-app .provider-cheapest-details > summary {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 14px;
  color: #344156;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}

.atlas-app .provider-cheapest-details > summary::-webkit-details-marker { display: none; }
.atlas-app .provider-cheapest-details > summary::marker { content: ''; }
.atlas-app .provider-cheapest-details > summary svg { width: 17px; height: 17px; flex: none; fill: none; stroke: #7b879a; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.atlas-app .provider-cheapest-details[open] > summary { border-bottom: 1px solid #e6eaf1; }
.atlas-app .provider-cheapest-details[open] > summary svg { transform: rotate(180deg); }
.atlas-app .provider-cheapest-panel { display: grid; gap: 8px; padding: 10px; }
.atlas-app .provider-cheapest-list { display: grid; gap: 7px; min-width: 0; }
.atlas-app .provider-cheapest-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; min-width: 0; padding: 9px 10px; border: 1px solid #e7ebf2; border-radius: 12px; background: #fff; }
.atlas-app .provider-cheapest-copy { min-width: 0; }
.atlas-app .provider-cheapest-heading { display: flex; min-width: 0; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.atlas-app .provider-cheapest-heading > a { min-width: 0; color: #18263b; font-size: 13px; font-weight: 750; line-height: 1.35; overflow-wrap: anywhere; }
.atlas-app .provider-cheapest-heading > a:hover { color: #d93742; }
.atlas-app .provider-cheapest-heading > span { display: inline-flex; min-height: 22px; align-items: center; padding: 0 8px; border-radius: 999px; background: #eef2f8; color: #59677b; font-size: 10px; font-weight: 700; white-space: nowrap; }
.atlas-app .provider-cheapest-copy > p { margin: 4px 0 0; color: #768196; font-size: 10px; line-height: 1.45; overflow-wrap: anywhere; }
.atlas-app .provider-cheapest-price { display: grid; justify-items: end; gap: 2px; text-align: right; }
.atlas-app .provider-cheapest-price > strong { color: #d93742; font-size: 13px; font-weight: 800; line-height: 1.25; white-space: nowrap; }
.atlas-app .provider-cheapest-price > small { color: #8993a3; font-size: 9px; line-height: 1.35; }
.atlas-app .provider-cheapest-empty { margin: 0; color: #6f7b8f; font-size: 12px; line-height: 1.5; }
.atlas-app .provider-cheapest-catalog-link { color: #315f96; font-size: 12px; font-weight: 750; text-decoration: underline; text-underline-offset: 2px; }
.atlas-app .provider-cheapest-note { margin: 0; color: #8a94a6; font-size: 9px; line-height: 1.45; }

.atlas-app .provider-directory-bottom {
  display: grid;
  grid-column: auto;
  grid-row: auto;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  min-height: 0;
  margin-top: auto;
  padding-left: 0;
  padding-top: 17px;
  border-left: 0;
}

.atlas-app .provider-directory-bottom a,
.atlas-app .provider-directory-compare {
  display: inline-flex;
  min-width: 0;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1.5px solid #dce2ec;
  border-radius: 14px;
  background: #fff;
  color: #1f2937;
  font: 700 14px/1 Manrope, Roboto, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .1s ease;
}

.atlas-app .provider-directory-bottom a:hover,
.atlas-app .provider-directory-compare:hover { border-color: #b9c3d3; background: #f8fafd; }
.atlas-app .provider-directory-bottom a:active,
.atlas-app .provider-directory-compare:active { transform: translateY(1px); }
.atlas-app .provider-directory-bottom .provider-directory-tariffs { grid-column: 1 / -1; justify-self: stretch; width: 100%; min-height: 56px; margin: 0; gap: 10px; border: 0; border-radius: 16px; background: linear-gradient(135deg, #ff5e62, #e2333a); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), 0 10px 20px rgba(226,51,58,.3); color: #fff; font-size: 15px; }
.atlas-app .provider-directory-bottom .provider-directory-tariffs:hover { border: 0; background: linear-gradient(135deg, #ff6b6f, #e93f46); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), 0 14px 26px rgba(226,51,58,.38); }
.atlas-app .provider-directory-tariffs svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.atlas-app .provider-directory-tariffs:hover svg { transform: translateX(3px); }
.atlas-app .provider-directory-bottom .provider-card-details { color: #1f2937; }
.atlas-app .provider-directory-bottom .provider-card-details span { color: #6b7588; }
.atlas-app .provider-directory-compare::before { width: 16px; height: 16px; flex: none; background: currentColor; content: ""; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 5.5h10M9.5 3L12 5.5 9.5 8M14 10.5H4M6.5 8 4 10.5 6.5 13' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 5.5h10M9.5 3L12 5.5 9.5 8M14 10.5H4M6.5 8 4 10.5 6.5 13' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.atlas-app .provider-directory-compare[aria-pressed="true"] { border-color: #315f96; background: #315f96; color: #fff; }
.atlas-app .provider-compare-input { display: none; }
.atlas-app .provider-directory-card a:focus-visible,
.atlas-app .provider-directory-card button:focus-visible,
.atlas-app .provider-country-more summary:focus-visible { outline: 3px solid rgba(59, 108, 246, .45); outline-offset: 2px; }

@container provider-card (max-width: 483px) {
  .atlas-app .provider-directory-metric { align-items: flex-start; }
  .atlas-app .provider-directory-metric--rating { flex-direction: column; gap: 8px; }
  .atlas-app .provider-rating-stars { align-self: flex-start; margin: 0 0 2px; }
  .atlas-app .provider-directory-count-icon { align-self: center; }
}

@container provider-card (max-width: 400px) {
  .atlas-app .provider-directory-card { padding: calc(24px - var(--bw)); border-radius: 24px; }
  .atlas-app .provider-card-topline { gap: 12px; }
  .atlas-app .provider-directory-brand { --logo-size: 56px; }
  .atlas-app .provider-card-name { font-size: 22px; }
  .atlas-app .provider-directory-position { width: 50px; min-width: 50px; height: 60px; border-radius: 15px; }
  .atlas-app .provider-directory-position small { font-size: 8px;  }
  .atlas-app .provider-directory-position b { font-size: 26px; }
  .atlas-app .provider-directory-metrics { gap: 10px; margin-top: 20px; }
  .atlas-app .provider-directory-metric { padding: 14px 13px; }
  .atlas-app .provider-directory-bottom .provider-directory-tariffs { min-height: 52px; }
}

@container provider-card (max-width: 240px) {
  .atlas-app .provider-directory-count-icon { display: none; }
}

@container provider-card (max-width: 262px) {
  .atlas-app .provider-directory-metric { padding: 12px; }
  .atlas-app .provider-cheapest-item { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .atlas-app .provider-cheapest-price { justify-items: start; text-align: left; }
  .atlas-app .provider-directory-bottom { grid-template-columns: minmax(0, 1fr); }
  .atlas-app .provider-directory-bottom .provider-directory-tariffs { grid-column: 1; width: 100%; }
}

@media (max-width: 1599px) {
  .atlas-app .provider-directory-section { padding-top: 24px; }
  .atlas-app .provider-directory-grid { gap: 24px; }
}

@media (max-width: 1079px) {
  .atlas-app .provider-directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 719px) {
  .atlas-app .provider-directory-section { padding: 24px 0 40px; }
  .atlas-app .provider-directory-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .atlas-app .provider-directory-card { min-height: 0; }
}

@media (max-width: 650px) {
  .atlas-app.page-providers .atlas-main-column,
  .atlas-app.page-providers .atlas-topbar,
  .atlas-app.page-providers .atlas-main-content { max-width: 100vw; }
  .atlas-app.page-providers .atlas-topbar { overflow-x: clip; }
  .atlas-app.page-providers .provider-directory-hero > .public-shell,
  .atlas-app.page-providers .provider-directory-section > .public-shell { width: calc(100vw - 32px); max-width: calc(100vw - 32px); margin-inline: 16px; }
  .atlas-app.page-providers .provider-directory-grid { width: 100%; max-width: 100%; }
  .atlas-app.page-providers .provider-directory-card { width: 100%; max-width: 100%; }
  .atlas-app.page-providers .provider-directory-hero .public-lead { width: 100%; max-width: 100%; overflow-wrap: anywhere; }
  .atlas-app .provider-directory-hero .public-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 10px; }
  .atlas-app .provider-directory-hero .public-hero-grid > div:first-child { min-width: 0; }
  .atlas-app .provider-directory-hero .public-hero-grid h1 { font-size: 25px; }
  .atlas-app .provider-directory-hero .public-lead { max-width: 440px; font-size: 11px; }
  .atlas-app .provider-directory-hero .public-hero-stat { display: grid; width: max-content; min-width: 0; grid-template-columns: auto auto; align-items: center; gap: 0 9px; padding: 8px 12px; }
  .atlas-app .provider-directory-hero .public-hero-stat > span { grid-column: 1 / -1; }
  .atlas-app .provider-directory-hero .public-hero-stat strong { grid-column: 1; grid-row: 2; }
  .atlas-app .provider-directory-hero .public-hero-stat small { grid-column: 2; grid-row: 2; }
  .atlas-app .atlas-topbar { flex-wrap: wrap; height: auto; }
  .atlas-app.page-providers .atlas-global-search { flex: 0 0 calc(100vw - 24px); width: calc(100vw - 24px); max-width: calc(100vw - 24px); min-width: 0; }
  .atlas-app.page-providers .atlas-topbar-stats { flex: 0 0 calc(100vw - 24px); width: calc(100vw - 24px); max-width: calc(100vw - 24px); min-width: 0; gap: 8px; }
  .atlas-app.page-providers .atlas-header-stat { width: 0; max-width: calc((100% - 8px) / 2); flex: 1 1 0%; }
  .atlas-app .atlas-header-stat-copy { min-width: 0; }
  .atlas-app .atlas-header-stat-copy > span { font-size: 11px; }
  .atlas-app .atlas-topbar-compare { order: 2; }
  .atlas-app .atlas-header-stat { min-width: 0; padding-inline: 8px; }
  .atlas-app .atlas-topbar-compare span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .atlas-app .provider-directory-card,
  .atlas-app .provider-directory-bottom a,
  .atlas-app .provider-directory-compare,
  .atlas-app .provider-directory-tariffs svg { transition: none; }
  .atlas-app .provider-cheapest-details > summary svg { transition: none; }
  .atlas-app .provider-directory-card:hover { transform: none; }
}
