/* =========================================================
   devaccount.ru — shared styles
   Mood: midnight · Material: frosted · Rhythm: dense
   ========================================================= */

:root {
  --bg: #0C0E13;
  --ink: #F5F5F7;
  --ink-2: rgba(255,255,255,0.62);
  --hairline: rgba(255,255,255,0.08);

  --glass-bg: rgba(40,44,54,0.72);
  --glass-bg-strong: rgba(40,44,54,0.84);
  --glass-bg-light: rgba(40,44,54,0.5);
  --glass-border: rgba(255,255,255,0.16);
  --glass-spec: rgba(255,255,255,0.22);
  --glass-shadow: 0 14px 40px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.3);

  --dark-glass-bg: rgba(245,245,247,0.96);
  --dark-glass-border: rgba(0,0,0,0.06);

  --focus: rgba(90,176,255,0.55);

  --radius-card: 24px;
  --radius-btn: 18px;
  --radius-squircle: 22.37%;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ----- aurora background ----- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: var(--bg);
}
.aurora::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: screen;
  opacity: 0.25;
  pointer-events: none;
}
.blob {
  position: absolute;
  width: 55vmax; height: 55vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}
.blob.b1 { background: #4F6FF7; top: -18vmax; left: -10vmax; animation: drift1 52s ease-in-out infinite alternate; }
.blob.b2 { background: #7C4DFF; top: 10vmax;  right: -18vmax; animation: drift2 48s ease-in-out infinite alternate; opacity: 0.4; }
.blob.b3 { background: #2EBDFF; bottom: -20vmax; left: 10vmax; animation: drift3 60s ease-in-out infinite alternate; opacity: 0.32; }
.blob.b4 { background: #FF6BC4; bottom: -10vmax; right: 5vmax; animation: drift4 56s ease-in-out infinite alternate; opacity: 0.28; }

@keyframes drift1 { from { transform: translate(0,0) scale(1); } to { transform: translate(8vmax, 6vmax) scale(1.08); } }
@keyframes drift2 { from { transform: translate(0,0) scale(1.05); } to { transform: translate(-6vmax, 10vmax) scale(0.95); } }
@keyframes drift3 { from { transform: translate(0,0) scale(1); } to { transform: translate(10vmax, -8vmax) scale(1.1); } }
@keyframes drift4 { from { transform: translate(0,0) scale(1); } to { transform: translate(-8vmax, -4vmax) scale(1.05); } }

/* ----- glass surfaces (frosted) ----- */
.glass {
  position: relative;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(64px) saturate(150%);
  backdrop-filter: blur(64px) saturate(150%);
  border: 1px solid var(--glass-border);
  box-shadow:
    inset 0 1px 0 var(--glass-spec),
    var(--glass-shadow);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.glass::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 45%);
  pointer-events: none;
  border-radius: inherit;
}
.glass > * { position: relative; z-index: 1; }

.glass-dark {
  background: var(--dark-glass-bg);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid var(--dark-glass-border);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.4),
    0 14px 40px rgba(0,0,0,0.18),
    0 1px 2px rgba(0,0,0,0.1);
  color: #1D1D1F;
}
.glass-dark::before {
  background: linear-gradient(180deg, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0) 60%);
}

/* ----- layout ----- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ----- top nav ----- */
.nav-wrap {
  position: sticky;
  top: 12px;
  z-index: 50;
  padding: 0 16px;
  transition: top 220ms ease;
}
.nav {
  max-width: 1200px;
  margin: 0 auto;
  height: 64px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 22px;
}
body.scrolled .nav {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  gap: 2px;
}
.wordmark {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.wordmark .dot { color: #5AB0FF; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 14px;
  color: var(--ink);
  opacity: 0.78;
  transition: opacity 200ms ease;
}
.nav-links a:hover { opacity: 1; }

.nav-burger {
  display: none;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.16);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
}
.nav-burger svg { width: 18px; height: 18px; }

/* mobile sheet */
.sheet {
  position: fixed;
  inset: 12px 12px auto 12px;
  z-index: 60;
  border-radius: 22px;
  padding: 18px;
  transform: translateY(-130%);
  transition: transform 320ms cubic-bezier(.2,.7,.2,1);
}
.sheet.open { transform: translateY(0); }
.sheet .sheet-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
}
.sheet .close {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  border: 0;
  color: #fff;
  display: grid; place-items: center;
  cursor: pointer;
}
.sheet nav { display: flex; flex-direction: column; gap: 4px; }
.sheet nav a {
  padding: 12px 10px;
  border-radius: 12px;
  font-size: 16px;
  color: var(--ink);
}
.sheet nav a:hover { background: rgba(255,255,255,0.06); }

/* ----- rates strip ----- */
.rates-strip-section { padding: 14px 0 0; }
.rates-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 8px 14px;
  font-size: 13px;
  color: var(--ink-2);
  letter-spacing: 0.01em;
  padding: 0 4px;
}
.rates-strip .rate-item { white-space: nowrap; }
.rates-strip .sym { color: var(--ink); font-weight: 500; margin-right: 4px; }
.rates-strip .cur { color: var(--ink); font-weight: 500; }
.rates-strip .val {
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  margin: 0 2px 0 6px;
}
.rates-strip .quote { color: var(--ink-2); }
.rates-strip .dot-sep { opacity: 0.4; user-select: none; }
.rates-strip .updated {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.rates-strip .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: #34C759;
  box-shadow: 0 0 0 0 rgba(52,199,89,0.5);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(52,199,89,0.5); }
  70%  { box-shadow: 0 0 0 6px rgba(52,199,89,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,199,89,0); }
}

/* ----- hero ----- */
.hero {
  padding: 56px 0 18px;
}
.hero h1 {
  font-size: clamp(26px, 3.8vw, 40px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 0 0 16px;
  max-width: 980px;
  text-wrap: balance;
}
.hero .sub {
  font-size: clamp(14px, 1.5vw, 17px);
  color: var(--ink-2);
  max-width: 720px;
  margin: 0;
}

/* ----- services carousel ----- */
.carousel-section { padding: 24px 0 36px; }
.carousel-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin: 0 0 22px;
  gap: 24px;
}
.carousel-head h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink-2);
}
.arrows { display: flex; gap: 10px; }
.arrow-btn {
  width: 44px; height: 44px;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  backdrop-filter: blur(40px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 6px 18px rgba(0,0,0,0.18);
  cursor: pointer;
  display: grid; place-items: center;
  color: var(--ink);
  transition: transform 200ms ease, background 200ms ease;
}
.arrow-btn:hover { transform: translateY(-1px); background: rgba(40,44,54,0.92); }
.arrow-btn:disabled { opacity: 0.4; cursor: default; transform: none; }
.arrow-btn svg { width: 16px; height: 16px; }

.carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 4*14px) / 5);
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 0;
  padding-bottom: 6px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.carousel::-webkit-scrollbar { display: none; }

.card {
  min-height: 280px;
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: 1fr 44px;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
  cursor: pointer;
  min-width: 0;
}
.card-content {
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  gap: 16px;
}
.card-arrow {
  display: grid;
  place-items: center;
  color: var(--ink);
  opacity: 0.5;
  font-size: 22px;
  line-height: 1;
  transition: opacity 200ms ease, transform 200ms ease;
}
.card:hover .card-arrow { opacity: 1; transform: translateX(3px); }
.card:hover {
  transform: translateY(-3px);
  background: rgba(40,44,54,0.84);
  box-shadow:
    inset 0 1px 0 var(--glass-spec),
    0 16px 40px rgba(0,0,0,0.32),
    0 2px 4px rgba(0,0,0,0.18);
}
.card .icon {
  width: 84px; height: 84px;
  border-radius: var(--radius-squircle);
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.28);
  overflow: hidden;
  flex: 0 0 auto;
}
.card .icon img,
.card .icon svg { width: 70%; height: 70%; object-fit: contain; display: block; }
.card .icon.icon-fill img,
.card .icon.icon-fill svg { width: 100%; height: 100%; object-fit: cover; }

.card .body { margin-top: auto; min-width: 0; }
.card .title {
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.22;
  margin: 0 0 6px;
  color: var(--ink);
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.card .desc {
  font-size: 12.5px;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.4;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* ----- big dark CTA ----- */
.cta-section { padding: 4px 0 40px; }
.cta {
  width: 100%;
  height: 60px;
  border-radius: 20px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #1D1D1F;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 220ms ease, background 220ms ease, box-shadow 220ms ease;
}
.cta:hover { background: rgba(255,255,255,0.98); }
.cta:hover .cta-arrow { transform: translateX(4px); }
.cta-left { display: flex; align-items: center; gap: 16px; min-width: 0; }
.cta-glyph {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.08);
  display: grid; place-items: center;
  flex: 0 0 auto;
}
.cta-glyph svg { width: 18px; height: 18px; }
.cta-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cta-arrow {
  font-size: 22px;
  line-height: 1;
  transition: transform 200ms ease;
  margin-left: 16px;
  flex: 0 0 auto;
}

/* ----- contacts ----- */
.contacts-section { padding: 4px 0 56px; }
.contacts {
  border-radius: 24px;
  padding: 26px;
  max-width: 520px;
}
.contacts h3 {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.contacts .email {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 12px 14px;
  transition: background 200ms ease;
}
.contacts .email:hover { background: rgba(255,255,255,0.12); }
.contacts .email .copy {
  font-size: 11px;
  color: var(--ink-2);
  opacity: 0;
  transition: opacity 200ms ease;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.contacts .email:hover .copy { opacity: 1; }
.contacts .helper {
  font-size: 13px;
  color: var(--ink-2);
  margin: 10px 4px 0;
}

/* ----- footer ----- */
footer.foot {
  margin-top: 16px;
  padding: 0 16px 28px;
}
.foot-bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
  border-radius: 22px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px;
  font-size: 13px;
  color: rgba(0,0,0,0.65);
}
.foot-bar nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-bar a { color: rgba(0,0,0,0.65); transition: color 200ms ease; }
.foot-bar a:hover { color: #1D1D1F; }

/* ----- responsive ----- */
@media (max-width: 980px) {
  .carousel { grid-auto-columns: 70%; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .carousel { grid-auto-columns: 82%; gap: 14px; }
  .foot-bar { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ----- reduced motion ----- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.001ms !important;
  }
  .blob { animation: none !important; }
}

/* =========================================================
   Blocked apps page
   ========================================================= */
.page-section { padding: 56px 0 80px; }
.page-section h1 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 0 0 14px;
  max-width: 900px;
  text-wrap: balance;
}
.page-section .lede {
  font-size: clamp(15px, 1.5vw, 17px);
  color: var(--ink-2);
  max-width: 720px;
  margin: 0 0 32px;
}
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px;
  color: var(--ink-2);
  margin: 16px 0 18px;
  transition: color 200ms ease;
}
.back-link:hover { color: var(--ink); }

.table-wrap {
  border-radius: 20px;
  padding: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.apps-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13.5px;
  color: var(--ink);
  min-width: 880px;
}
.apps-table thead th {
  text-align: left;
  padding: 12px 14px;
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  white-space: nowrap;
}
.apps-table tbody td {
  padding: 16px 14px;
  vertical-align: top;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  line-height: 1.45;
}
.apps-table tbody tr:last-child td { border-bottom: 0; }
.apps-table tbody tr:hover td { background: rgba(255,255,255,0.04); }

.app-cell {
  display: flex; align-items: center; gap: 12px;
  min-width: 200px;
}
.app-icon {
  width: 36px; height: 36px;
  flex: 0 0 auto;
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.app-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.app-name {
  font-weight: 600;
  letter-spacing: -0.005em;
}

.tag {
  display: inline-flex; align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.tag-yes {
  background: rgba(52,199,89,0.16);
  color: #4ED982;
  border: 1px solid rgba(52,199,89,0.3);
}
.tag-no {
  background: rgba(255,69,58,0.16);
  color: #FF7A6F;
  border: 1px solid rgba(255,69,58,0.3);
}

@media (max-width: 760px) {
  .page-section { padding: 32px 0 56px; }
  .apps-table { font-size: 13px; }
}

/* =========================================================
   404 page
   ========================================================= */
.notfound {
  min-height: calc(100vh - 64px - 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
}
.notfound .code {
  font-size: clamp(80px, 16vw, 160px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 0 16px;
  background: linear-gradient(180deg, #5AB0FF, #7C4DFF);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.notfound h1 {
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 10px;
}
.notfound p {
  color: var(--ink-2);
  font-size: 15px;
  max-width: 480px;
  margin: 0 0 28px;
}
.notfound .home-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: background 200ms ease, transform 200ms ease;
}
.notfound .home-btn:hover { background: rgba(255,255,255,0.12); transform: translateY(-1px); }
