/* Isolated homepage preview. All selectors stay under .atx- so they do not restyle the studio site. */

.atx-browser {
  --atx-navy: #014b88;
  --atx-navy-deep: #012a52;
  --atx-cyan: #02b0fb;
  --atx-text: #0f2438;
  --atx-muted: #4a6178;
  --atx-bg: #eef6fb;
  --atx-soft: #dff3fc;
  --atx-border: #c5dceb;
  --atx-w: 1080;
  background: #0f172a;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
  overflow: hidden;
}

.atx-browser__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #1e293b;
}

.atx-browser__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #475569;
}

.atx-browser__dot:nth-child(1) { background: #f87171; }
.atx-browser__dot:nth-child(2) { background: #fbbf24; }
.atx-browser__dot:nth-child(3) { background: #34d399; }

.atx-browser__url {
  margin-left: 8px;
  flex: 1;
  background: #0f172a;
  color: #cbd5e1;
  border-radius: 8px;
  padding: 4px 12px;
  font-size: 12px;
  font-family: ui-monospace, Consolas, monospace;
}

.atx-browser__viewport {
  container-type: inline-size;
  width: 100%;
  overflow: hidden;
}

.atx-shot {
  width: calc(var(--atx-w) * 1px);
  zoom: calc(100cqi / (var(--atx-w) * 1px));
  background: var(--atx-bg);
  color: var(--atx-text);
  font-family: Inter, Manrope, system-ui, sans-serif;
  line-height: 1.45;
}

.atx-shot img { display: block; max-width: 100%; }
.atx-shot img.atx-cat__img { width: 100%; height: 118px; object-fit: cover; }
.atx-shot .atx-project__photo img,
.atx-shot .atx-hero__photo { width: 100%; height: 100%; object-fit: cover; }

.atx-header {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 28px;
  background: rgba(1, 75, 136, 0.94);
  color: #fff;
}

.atx-logo {
  font-weight: 600;
  font-size: 13px;
  line-height: 1.25;
  max-width: 160px;
}

.atx-nav {
  display: flex;
  gap: 18px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  font-weight: 600;
}

.atx-header__side { display: flex; align-items: center; gap: 12px; }

.atx-phone {
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.atx-hero {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background: var(--atx-navy-deep);
}

.atx-hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.atx-hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(1, 42, 82, 0.92) 0%, rgba(1, 75, 136, 0.72) 34%, rgba(1, 75, 136, 0.18) 58%, transparent 70%),
    linear-gradient(180deg, rgba(1, 42, 82, 0.2) 0%, transparent 40%, rgba(1, 42, 82, 0.45) 100%);
}

.atx-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.3fr 0.55fr;
  gap: 24px;
  width: 100%;
  padding: 48px 36px 56px;
}

.atx-hero h2 {
  font-size: 36px;
  line-height: 1.18;
  font-weight: 800;
  margin: 0 0 14px;
  max-width: 640px;
}

.atx-hero p {
  margin: 0 0 22px;
  max-width: 560px;
  font-size: 17px;
  opacity: 0.94;
}

.atx-hero__actions { display: flex; gap: 12px; }

.atx-btn {
  display: inline-flex;
  align-items: center;
  padding: 11px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  border: 2px solid transparent;
}

.atx-btn--primary { background: var(--atx-cyan); color: #fff; border-color: var(--atx-cyan); }
.atx-btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.atx-btn--header { background: var(--atx-cyan); color: #fff; padding: 8px 14px; }

.atx-stats { display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.atx-stat strong { display: block; font-size: 32px; line-height: 1.05; font-weight: 800; }
.atx-stat span { font-size: 15px; color: rgba(255, 255, 255, 0.86); }

.atx-services { background: #fff; padding: 36px 28px 28px; }
.atx-services h3,
.atx-catalog h3,
.atx-projects h3 {
  margin: 0 0 8px;
  font-size: 28px;
  color: var(--atx-navy);
}

.atx-services__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 16px;
  background: var(--atx-soft);
  border-radius: 12px;
}

.atx-service {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 16px;
  position: relative;
}

.atx-service:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 18%;
  right: 0;
  width: 1px;
  height: 64%;
  background: rgba(2, 176, 251, 0.35);
}

.atx-service .atx-service__icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(2, 176, 251, 0.55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--atx-navy);
  background: #fff;
}

.atx-service__icon svg { width: 26px; height: 26px; display: block; }
.atx-service strong { display: block; color: var(--atx-navy); font-size: 15px; margin-bottom: 4px; }
.atx-service div > span { display: block; color: var(--atx-muted); font-size: 13px; line-height: 1.35; }

.atx-services { background: #eef6fb; }
.atx-services__row { background: rgba(255, 255, 255, 0.72); border: 1px solid rgba(2, 176, 251, 0.18); }

.atx-catalog,
.atx-projects { padding: 8px 28px 32px; background: #eef6fb; }

.atx-split {
  display: grid;
  grid-template-columns: minmax(170px, 0.72fr) minmax(0, 3.2fr);
  gap: 24px;
  align-items: center;
}

.atx-split__intro p { margin: 0 0 16px; color: var(--atx-muted); font-size: 15px; max-width: 240px; }

.atx-slider__view { overflow: hidden; position: relative; }

.atx-slider__track {
  display: flex;
  gap: 14px;
  transition: transform 0.35s ease;
}

.atx-slide { flex: 0 0 calc((100% - 42px) / 4); min-width: 0; }

.atx-slider__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 16px;
}

.atx-dots { display: flex; gap: 8px; align-items: center; }
.atx-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: #c5dceb;
  cursor: pointer;
}
.atx-dots button.is-active { width: 24px; border-radius: 999px; background: var(--atx-cyan); }

.atx-next {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--atx-border);
  background: #fff;
  color: var(--atx-navy);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(1, 75, 136, 0.12);
}

.atx-cat,
.atx-project {
  height: 100%;
  background: #fff;
  border: 1px solid var(--atx-border);
  border-radius: 10px;
  overflow: hidden;
}

.atx-cat__img { height: 118px; background: var(--atx-navy-deep); }
.atx-cat__body { position: relative; padding: 12px 40px 14px 14px; min-height: 52px; }
.atx-cat__body strong { display: block; color: var(--atx-navy); font-size: 15px; }
.atx-cat__arrow {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--atx-cyan);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
}

.atx-project__photo { position: relative; height: 148px; overflow: hidden; background: var(--atx-navy-deep); }
.atx-project__badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(1, 75, 136, 0.88);
  color: #fff;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 13px;
  font-weight: 700;
}

.atx-project__body { padding: 12px 14px 14px; }
.atx-project__body strong { display: block; color: var(--atx-navy); font-size: 16px; margin-bottom: 6px; }
.atx-project__body p { margin: 0; color: var(--atx-muted); font-size: 13px; }

.atx-admin {
  background: #fff;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.atx-admin__top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.atx-admin__file {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #334155;
  font-size: 14px;
}

.atx-admin__drop {
  border: 1px dashed #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
}

.atx-admin__status {
  font-size: 13px;
  font-weight: 700;
  color: #047857;
  background: #ecfdf5;
  border-radius: 999px;
  padding: 6px 12px;
}

.atx-admin table { width: 100%; border-collapse: collapse; font-size: 14px; }
.atx-admin th,
.atx-admin td { text-align: left; padding: 12px 16px; border-bottom: 1px solid #e2e8f0; }
.atx-admin th { font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: #64748b; }
.atx-admin__foot {
  display: flex;
  justify-content: flex-end;
  padding: 14px 16px 18px;
}

.atx-admin__btn {
  background: #1b6fd4;
  color: #fff;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 14px;
}

.case-placeholder {
  background: #fff7ed;
  color: #9a3412;
  border-radius: 6px;
  padding: 0 0.35rem;
  font-weight: 700;
}
