:root {
  --bg-0: #0c1412;
  --bg-1: #13201c;
  --ink: #e8f2ee;
  --muted: #8aa399;
  --line: rgba(232, 242, 238, 0.12);
  --accent: #2dd4a8;
  --accent-ink: #04241a;
  --warn: #f0b429;
  --danger: #ff6b6b;
  --ok: #5eead4;
  --radius: 18px;
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Syne", "DM Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg-0);
  min-height: 100vh;
}

.atmosphere {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(45, 212, 168, 0.22), transparent 55%),
    radial-gradient(700px 420px at 95% 10%, rgba(56, 120, 100, 0.28), transparent 50%),
    linear-gradient(160deg, #0c1412 0%, #101a17 45%, #0a1210 100%);
  pointer-events: none;
  z-index: 0;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  margin: 0 auto;
  padding: 2.25rem 1.25rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-height: 100vh;
}

.brand-mark {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 2.6rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.brand-sub {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.dialer {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  padding: 1.25rem 1.1rem 1.35rem;
  backdrop-filter: blur(10px);
  animation: rise 0.55s ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
}

.badge {
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
}

.badge-ok {
  color: var(--ok);
  border-color: rgba(94, 234, 212, 0.35);
}

.badge-warn {
  color: var(--warn);
  border-color: rgba(240, 180, 41, 0.35);
}

.field-label {
  display: block;
  margin: 0 0 0.45rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.phone-input {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
  color: var(--ink);
  border-radius: 14px;
  padding: 0.95rem 1rem;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  outline: none;
  margin-bottom: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.phone-input:focus {
  border-color: rgba(45, 212, 168, 0.55);
  box-shadow: 0 0 0 3px rgba(45, 212, 168, 0.15);
}

.lang-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  margin-bottom: 1.1rem;
}

.lang-btn {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 12px;
  padding: 0.7rem 0.4rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.lang-btn:hover {
  border-color: rgba(232, 242, 238, 0.28);
}

.lang-btn.is-active {
  background: rgba(45, 212, 168, 0.16);
  border-color: rgba(45, 212, 168, 0.55);
  color: var(--ok);
}

.pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  margin-bottom: 1.15rem;
}

.pad button {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  border-radius: 16px;
  min-height: 64px;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}

.pad button span {
  font-family: var(--font);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.pad button:active {
  transform: scale(0.96);
  background: rgba(45, 212, 168, 0.12);
}

.call-btn {
  width: 100%;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #3be0b0, #1f9f7a);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 1rem 1.2rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  box-shadow: 0 12px 30px rgba(45, 212, 168, 0.25);
  transition: transform 0.15s ease, filter 0.15s ease, opacity 0.15s ease;
}

.call-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.call-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.call-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-ink);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6.6 10.8c1.4 2.8 3.8 5.1 6.6 6.6l2.2-2.2c.3-.3.7-.4 1.1-.2 1.2.4 2.5.6 3.8.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C10.6 21 3 13.4 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.6.6 3.8.1.4 0 .8-.3 1.1L6.6 10.8z'/%3E%3C/svg%3E")
    center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6.6 10.8c1.4 2.8 3.8 5.1 6.6 6.6l2.2-2.2c.3-.3.7-.4 1.1-.2 1.2.4 2.5.6 3.8.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C10.6 21 3 13.4 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.6.6 3.8.1.4 0 .8-.3 1.1L6.6 10.8z'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.message {
  min-height: 1.4em;
  margin: 0.9rem 0 0;
  font-size: 0.92rem;
  color: var(--muted);
  text-align: center;
}

.message.is-error {
  color: var(--danger);
}

.message.is-ok {
  color: var(--ok);
}

.hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

.hint code {
  font-size: 0.8rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.1rem 0.35rem;
}

@media (max-width: 420px) {
  .shell {
    padding-top: 1.5rem;
  }
}
